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