fix cmd
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user