修正串口问题
This commit is contained in:
@@ -359,7 +359,7 @@ void commandprocess::_int(float param1,
|
||||
command_int.current = current;
|
||||
command_int.autocontinue = autocontinue;
|
||||
|
||||
mavlink_msg_command_int_encode(2,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_int);
|
||||
mavlink_msg_command_int_encode(Current_sysID,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_int);
|
||||
SendMessage(msg);
|
||||
}
|
||||
|
||||
@@ -389,7 +389,7 @@ void commandprocess::_long(float param1,
|
||||
command_long.command = command;
|
||||
command_long.confirmation = confirmation;
|
||||
|
||||
mavlink_msg_command_long_encode(2,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_long);
|
||||
mavlink_msg_command_long_encode(Current_sysID,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_long);
|
||||
SendMessage(msg);
|
||||
}
|
||||
|
||||
@@ -417,7 +417,7 @@ void commandprocess::ack(uint16_t command,uint8_t result,uint8_t progress,int32_
|
||||
command_ack.progress = progress;
|
||||
command_ack.result_param2 = result_param2;
|
||||
|
||||
mavlink_msg_command_ack_encode(2,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_ack);
|
||||
mavlink_msg_command_ack_encode(Current_sysID,MAV_COMP_ID_MISSIONPLANNER, &msg,&command_ack);
|
||||
SendMessage(msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user