34 #include "pprzlink/messages.h"
112 float gain = (float)fabs( (
double) (cosf(phi) * cosf(theta)));
struct MedianFilterInt lidar_sf11_filter
struct i2c_transaction trans
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
enum LidarSF11Status status
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
transaction successfully finished by I2C driver
Main include for ABI (AirBorneInterface).
void lidar_sf11_init(void)
Initialization function.
struct LidarSF11 lidar_sf11
transaction set to done by user level
driver for the Parallax SF11-A/B/C Laser Rangefinder connected over i2c bus.
void lidar_sf11_event(void)
Lidar event function Check if the transaction succeded before reading the result. ...
bool i2c_transceive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
Submit a write/read transaction.
enum I2CTransactionStatus status
Transaction status.
#define AGL_LIDAR_SF11_ID
API to get/set the generic vehicle states.
void lidar_sf11_downlink(void)
Downlink message for debug.
transaction is currently ongoing
Common code for AP and FBW telemetry.
void lidar_sf11_periodic(void)
Poll lidar for data.
transaction is pending in queue