42 #include "pprzlink/messages.h"
48 #define LIDAR_LITE_REG_ADDR 0x00
49 #define LIDAR_LITE_REG_VAL 0x04
50 #define LIDAR_LITE_READ_ADDR 0x8F
152 float gain = (float)fabs( (
double) (cosf(phi) * cosf(theta)));
#define LIDAR_LITE_READ_ADDR
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
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_lite_downlink(void)
Downlink message for debug.
driver for the Lidar-Lite i2c lidar
struct LidarLite lidar_lite
struct i2c_transaction trans
transaction set to done by user level
#define LIDAR_LITE_REG_VAL
enum I2CTransactionStatus status
Transaction status.
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
API to get/set the generic vehicle states.
enum LidarLiteStatus status
void lidar_lite_periodic(void)
Poll lidar for data for altitude hold 50Hz-100Hz should be enough, in theory can go faster (see the d...
void lidar_lite_event(void)
Lidar event function Basically just check the progress of the transation to prevent overruns during h...
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
transaction is currently ongoing
Common code for AP and FBW telemetry.
void lidar_lite_init(void)
Initialization function.
#define LIDAR_LITE_REG_ADDR
struct MedianFilterInt lidar_lite_filter
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
#define AGL_LIDAR_LITE_ID
transaction is pending in queue