ArduSub: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION

This commit is contained in:
Peter Barker 2022-02-08 13:57:21 +11:00 committed by Peter Barker
parent 458d43fc1e
commit bbc040d807
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {