This commit is contained in:
2020-05-30 15:50:05 +08:00
parent 16f483798a
commit 284c01cfcc
3 changed files with 29 additions and 6 deletions
+14 -1
View File
@@ -122,7 +122,18 @@ void commandprocess::WriteCmd(uint8_t m_sysid, uint8_t m_compid ,
void commandprocess::WriteCmd_long(float param1, float param2, float param3, float param4, float param5, float param6, float param7)
{
WriteCmd(0,0,
param1,
param2,
param3,
param4,
param5,
param6,
param7,
0,0,0,0);
}
@@ -148,6 +159,8 @@ void commandprocess::Parse(mavlink_message_t msg)
if(command_ack.result == MAV_RESULT_ACCEPTED)
{
status.transmit.isWaitingforACK = false;
emit commandAccepted(command_ack.command);//广播指令已经接受的反馈
}
else
{