Browse Source

Copter: use handle_rc_bind

mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
57830784e2
  1. 7
      ArduCopter/GCS_Mavlink.cpp

7
ArduCopter/GCS_Mavlink.cpp

@ -1205,12 +1205,7 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg) @@ -1205,12 +1205,7 @@ void GCS_MAVLINK_Copter::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;
}
result = handle_rc_bind(packet);
break;
case MAV_CMD_NAV_TAKEOFF: {

Loading…
Cancel
Save