Skip to content

Commit

Permalink
GCS_Common: use int8_t for rangefinder quality_pct
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and peterbarker committed Oct 10, 2023
1 parent 7953cd9 commit 107474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 107474b

Please sign in to comment.