From 5b34fa4f6a32603fcc25d97403a7c0420d8025cd Mon Sep 17 00:00:00 2001 From: Eugene Shamaev Date: Wed, 10 Jun 2015 16:46:17 +1000 Subject: [PATCH] Plane: added DSM bind support --- ArduPlane/GCS_Mavlink.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index c15172bb0d..3234233ec7 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1066,6 +1066,15 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) switch(packet.command) { + case MAV_CMD_START_RX_PAIR: + // initiate bind procedure + if (!hal.rcin->rc_bind(packet.param1)) { + result = MAV_RESULT_FAILED; + } else { + result = MAV_RESULT_ACCEPTED; + } + break; + case MAV_CMD_NAV_LOITER_UNLIM: plane.set_mode(LOITER); result = MAV_RESULT_ACCEPTED;