I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
uint16_t raw
raw measuread non scaled range value from sensor
float distance
Distance scaled to [m].
void sonar_i2c_event(void)
Rangefinder event function Basically just check the progress of the transation to prevent overruns du...
enum SonarI2CStatus status
void sonar_i2c_report(void)
Option to send debug informative values over telemetry if you do not want sonar message in telemetry.
bool update_agl
Do or don't update AGL ABI message.
void sonar_i2c_init(void)
Set the default values at initialization.
struct SonarI2C sonar_i2c
struct i2c_transaction trans
void sonar_i2c_periodic(void)
Get the ranger current distance value.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.