mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
GCS_MAVLink: split sending terrain report from terrain request
This commit is contained in:
parent
a401c98c74
commit
423daaa71f
@ -1049,8 +1049,10 @@ ap_message GCS_MAVLINK::mavlink_id_to_ap_message_id(const uint32_t mavlink_id) c
|
||||
{ MAVLINK_MSG_ID_RANGEFINDER, MSG_RANGEFINDER},
|
||||
#endif
|
||||
{ MAVLINK_MSG_ID_DISTANCE_SENSOR, MSG_DISTANCE_SENSOR},
|
||||
// request also does report:
|
||||
{ MAVLINK_MSG_ID_TERRAIN_REQUEST, MSG_TERRAIN},
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
{ MAVLINK_MSG_ID_TERRAIN_REQUEST, MSG_TERRAIN_REQUEST},
|
||||
{ MAVLINK_MSG_ID_TERRAIN_REPORT, MSG_TERRAIN_REPORT},
|
||||
#endif
|
||||
#if AP_MAVLINK_BATTERY2_ENABLED
|
||||
{ MAVLINK_MSG_ID_BATTERY2, MSG_BATTERY2},
|
||||
#endif
|
||||
|
@ -52,7 +52,8 @@ enum ap_message : uint8_t {
|
||||
MSG_WIND,
|
||||
MSG_RANGEFINDER,
|
||||
MSG_DISTANCE_SENSOR,
|
||||
MSG_TERRAIN,
|
||||
MSG_TERRAIN_REQUEST,
|
||||
MSG_TERRAIN_REPORT,
|
||||
MSG_BATTERY2,
|
||||
MSG_CAMERA_FEEDBACK,
|
||||
MSG_CAMERA_INFORMATION,
|
||||
|
Loading…
Reference in New Issue
Block a user