|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
34 #include "pprzlink/messages.h"
113 float gain = (float)fabs( (
double) (cosf(phi) * cosf(theta)));
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
void lidar_sf11_downlink(void)
Downlink message for debug.
struct MedianFilterInt lidar_sf11_filter
struct LidarSF11 lidar_sf11
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
@ I2CTransFailed
transaction failed
enum LidarSF11Status status
@ I2CTransSuccess
transaction successfully finished by I2C driver
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
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.
@ I2CTransRunning
transaction is currently ongoing
void lidar_sf11_periodic(void)
Poll lidar for data.
enum I2CTransactionStatus status
Transaction status.
void lidar_sf11_init(void)
Initialization function.
Common code for AP and FBW telemetry.
void lidar_sf11_event(void)
Lidar event function Check if the transaction succeded before reading the result.
@ I2CTransPending
transaction is pending in queue
@ I2CTransDone
transaction set to done by user level
driver for the Parallax SF11-A/B/C Laser Rangefinder connected over i2c bus.
struct i2c_transaction trans
#define AGL_LIDAR_SF11_ID