Commit 94342959 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #533 from DonLakeFlyer/FixPixhawkErrors

Fix unused variables errors in Pixhawk build
parents 7431acf0 bde73aed
...@@ -103,6 +103,11 @@ void ArduPilotMegaMAV::setMountConfigure(unsigned char mode, bool stabilize_roll ...@@ -103,6 +103,11 @@ void ArduPilotMegaMAV::setMountConfigure(unsigned char mode, bool stabilize_roll
mavlink_message_t msg; mavlink_message_t msg;
mavlink_msg_mount_configure_pack(255,1,&msg,this->uasId,1,mode,stabilize_roll,stabilize_pitch,stabilize_yaw); mavlink_msg_mount_configure_pack(255,1,&msg,this->uasId,1,mode,stabilize_roll,stabilize_pitch,stabilize_yaw);
sendMessage(msg); sendMessage(msg);
#else
Q_UNUSED(mode);
Q_UNUSED(stabilize_roll);
Q_UNUSED(stabilize_pitch);
Q_UNUSED(stabilize_yaw);
#endif #endif
} }
void ArduPilotMegaMAV::setMountControl(double pa,double pb,double pc,bool islatlong) void ArduPilotMegaMAV::setMountControl(double pa,double pb,double pc,bool islatlong)
...@@ -118,5 +123,10 @@ void ArduPilotMegaMAV::setMountControl(double pa,double pb,double pc,bool islatl ...@@ -118,5 +123,10 @@ void ArduPilotMegaMAV::setMountControl(double pa,double pb,double pc,bool islatl
mavlink_msg_mount_control_pack(255,1,&msg,this->uasId,1,pa,pb,pc,0); mavlink_msg_mount_control_pack(255,1,&msg,this->uasId,1,pa,pb,pc,0);
} }
sendMessage(msg); sendMessage(msg);
#else
Q_UNUSED(pa);
Q_UNUSED(pb);
Q_UNUSED(pc);
Q_UNUSED(islatlong);
#endif #endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment