35 #include "pprzlink/messages.h"
44 #if PERIODIC_TELEMETRY
53 pprz_msg_send_LIDAR(trans,
dev, AC_ID,
75 #if PERIODIC_TELEMETRY
160 float gain = (float)fabs((
double)(cosf(phi) * cosf(theta)));
Main include for ABI (AirBorneInterface).
#define AGL_LIDAR_TFMINI_ID
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
API to get/set the generic vehicle states.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
void tfmini_event(void)
Lidar event function Receive bytes from the UART port and parse them.
static void tfmini_parse(uint8_t byte)
Parse the lidar bytes 1 by 1.
static void tfmini_send_lidar(struct transport_tx *trans, struct link_device *dev)
Downlink message lidar.
void tfmini_init(void)
Initialization function.
driver for the TFMini lidar
struct link_device * device
enum TFMiniParseStatus parse_status
@ TFMINI_PARSE_STRENGTH_L
@ TFMINI_PARSE_STRENGTH_H
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.