34 #include "pprzlink/messages.h"
113 float gain = (float)fabs( (
double) (cosf(phi) * cosf(theta)));
Main include for ABI (AirBorneInterface).
#define AGL_LIDAR_SF11_ID
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
enum I2CTransactionStatus status
Transaction status.
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
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransFailed
transaction failed
@ I2CTransDone
transaction set to done by user level
@ I2CTransPending
transaction is pending in queue
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
void lidar_sf11_init(void)
Initialization function.
struct LidarSF11 lidar_sf11
void lidar_sf11_periodic(void)
Poll lidar for data.
void lidar_sf11_downlink(void)
Downlink message for debug.
struct MedianFilterInt lidar_sf11_filter
void lidar_sf11_event(void)
Lidar event function Check if the transaction succeded before reading the result.
driver for the Parallax SF11-A/B/C Laser Rangefinder connected over i2c bus.
enum LidarSF11Status status
struct i2c_transaction trans
API to get/set the generic vehicle states.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.