添加check说明功能
This commit is contained in:
@@ -171,11 +171,12 @@ void commandprocess::Parse(mavlink_message_t msg)
|
||||
{
|
||||
status.transmit.isWaitingforACK = false;
|
||||
|
||||
emit commandAccepted(true,command_ack.command);//广播指令已经接受的反馈
|
||||
emit commandAccepted(true,command_ack.command,command_ack.result);//广播指令反馈
|
||||
}
|
||||
else
|
||||
{
|
||||
//拒绝该指令
|
||||
emit commandAccepted(false,command_ack.command,command_ack.result);//广播指令反馈
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -244,7 +245,7 @@ void commandprocess::WriteStateMachine(void)
|
||||
//清除指令
|
||||
if(status.transmit.type == 0)
|
||||
{
|
||||
emit commandAccepted(false,cmd_int.command);
|
||||
emit commandAccepted(false,cmd_int.command,0);
|
||||
|
||||
cmd_int.param1 = 0;
|
||||
cmd_int.param2 = 0;
|
||||
@@ -260,7 +261,7 @@ void commandprocess::WriteStateMachine(void)
|
||||
}
|
||||
else if(status.transmit.type == 1)
|
||||
{
|
||||
emit commandAccepted(false,cmd_long.command);
|
||||
emit commandAccepted(false,cmd_long.command,0);
|
||||
|
||||
cmd_long.param1 = 0;
|
||||
cmd_long.param2 = 0;
|
||||
|
||||
Reference in New Issue
Block a user