修正串口问题

This commit is contained in:
hm
2020-08-04 23:18:58 +08:00
parent 89823631f9
commit f33888d422
10 changed files with 96 additions and 37 deletions
+3 -3
View File
@@ -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);
}