SITL: correct max_distance in simulated mavlink rangefinder

This commit is contained in:
Peter Barker 2020-12-06 11:04:16 +11:00 committed by Peter Barker
parent cba5f142a7
commit 81ab322daa
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ uint32_t RF_MAVLink::packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t bu
const mavlink_distance_sensor_t distance_sensor{
time_boot_ms: AP_HAL::millis(),
min_distance: 10, // cm
max_distance: 10, // cm
max_distance: 1000, // cm
current_distance: alt_cm,
type: 0,
id: 72, // ID