ArduCopter: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION

This commit is contained in:
Peter Barker 2022-02-08 13:57:19 +11:00 committed by Peter Barker
parent 29a469432e
commit 019d45524f
1 changed files with 2 additions and 0 deletions

View File

@ -1392,6 +1392,8 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)
case MAVLINK_MSG_ID_SET_HOME_POSITION: 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_set_home_position_t packet;
mavlink_msg_set_home_position_decode(&msg, &packet); mavlink_msg_set_home_position_decode(&msg, &packet);
if ((packet.latitude == 0) && (packet.longitude == 0) && (packet.altitude == 0)) { if ((packet.latitude == 0) && (packet.longitude == 0) && (packet.altitude == 0)) {