Paparazzi UAS  v5.15_devel-59-g8c145b7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tfmini.c File Reference

driver for the TFMini lidar More...

#include "tfmini.h"
#include "mcu_periph/uart.h"
#include "subsystems/abi.h"
#include "state.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "subsystems/datalink/telemetry.h"
+ Include dependency graph for tfmini.c:

Go to the source code of this file.


static void tfmini_parse (uint8_t byte)
 Parse the lidar bytes 1 by 1. More...
static void tfmini_send_lidar (struct transport_tx *trans, struct link_device *dev)
 Downlink message lidar. More...
void tfmini_init (void)
 Initialization function. More...
void tfmini_event (void)
 Lidar event function Receive bytes from the UART port and parse them. More...


struct TFMini tfmini

Detailed Description

driver for the TFMini lidar

Definition in file tfmini.c.

Function Documentation

void tfmini_event ( void  )

Lidar event function Receive bytes from the UART port and parse them.

Definition at line 83 of file tfmini.c.

References TFMini::device, TFMini::parse_status, TFMINI_INITIALIZE, and tfmini_parse().

+ Here is the call graph for this function:

void tfmini_init ( void  )
static void tfmini_send_lidar ( struct transport_tx *  trans,
struct link_device *  dev 

Downlink message lidar.

Definition at line 50 of file tfmini.c.

References TFMini::distance, TFMini::mode, and TFMini::parse_status.

Referenced by tfmini_init().

+ Here is the caller graph for this function:

Variable Documentation

struct TFMini tfmini
Initial value:
= {
.parse_status = TFMINI_INITIALIZE

Definition at line 38 of file tfmini.c.