mirror of https://github.com/ArduPilot/ardupilot
ArduSub: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION
This commit is contained in:
parent
458d43fc1e
commit
bbc040d807
|
@ -710,6 +710,8 @@ void GCS_MAVLINK_Sub::handleMessage(const mavlink_message_t &msg)
|
|||
break;
|
||||
|
||||
case MAVLINK_MSG_ID_SET_HOME_POSITION: {
|
||||
send_received_message_deprecation_warning(STR_VALUE(MAVLINK_MSG_ID_SET_HOME_POSITION));
|
||||
|
||||
mavlink_set_home_position_t packet;
|
||||
mavlink_msg_set_home_position_decode(&msg, &packet);
|
||||
if ((packet.latitude == 0) && (packet.longitude == 0) && (packet.altitude == 0)) {
|
||||
|
|
Loading…
Reference in New Issue