mirror of https://github.com/ArduPilot/ardupilot
GCS_Common: use int8_t for rangefinder quality_pct
This commit is contained in:
parent
7953cd9a89
commit
107474b792
|
@ -394,7 +394,7 @@ void GCS_MAVLINK::send_distance_sensor(const AP_RangeFinder_Backend *sensor, con
|
|||
return;
|
||||
}
|
||||
|
||||
uint8_t quality_pct = 0;
|
||||
int8_t quality_pct;
|
||||
uint8_t quality;
|
||||
if (sensor->get_signal_quality_pct(quality_pct)) {
|
||||
// mavlink defines this field as 0 is unknown, 1 is invalid, 100 is perfect
|
||||
|
|
Loading…
Reference in New Issue