float scale
Scaling factor to convert raw value to a distance in SI unit (meters)
uint16_t raw
raw measuread non scaled range value from sensor
void sonar_adc_init(void)
void sonar_adc_report(void)
Debug report Option to send debug informative values over telemetry.
struct SonarADC sonar_adc
float distance
Distance measured in meters.
void sonar_adc_periodic(void)
Reading Read ADC value to update sonar measurement.
bool update_agl
Do or don't update AGL ABI message.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.