From 5e38adfae35027f132719fcecdc25c181dcaec5c Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 2 Sep 2015 16:44:22 +0900 Subject: [PATCH] Copter: remove support for configure as command long Also protect mount calls with MOUNT definition --- ArduCopter/GCS_Mavlink.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index ced6b9ddb2..b2a02698ea 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1263,12 +1263,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) result = MAV_RESULT_ACCEPTED; break; - case MAV_CMD_DO_MOUNT_CONFIGURE: - copter.camera_mount.configure((MAV_MOUNT_MODE)packet.param1, packet.param2, packet.param3, packet.param4); - break; - case MAV_CMD_DO_MOUNT_CONTROL: +#if MOUNT == ENABLED copter.camera_mount.control(packet.param1, packet.param2, packet.param3, (MAV_MOUNT_MODE) packet.param7); +#endif break; case MAV_CMD_MISSION_START: