Rover: added DSM bind support
This commit is contained in:
parent
40a5aa497a
commit
3ecead9d3c
@ -829,6 +829,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_RETURN_TO_LAUNCH:
|
||||
rover.set_mode(RTL);
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
|
Loading…
Reference in New Issue
Block a user