Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
tfmini.h File Reference

driver for the TFMini lidar More...

#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for tfmini.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TFMini
 

Enumerations

enum  TFMiniParseStatus {
  TFMINI_INITIALIZE , TFMINI_PARSE_HEAD , TFMINI_PARSE_HEAD2 , TFMINI_PARSE_DIST_L ,
  TFMINI_PARSE_DIST_H , TFMINI_PARSE_STRENGTH_L , TFMINI_PARSE_STRENGTH_H , TFMINI_PARSE_MODE ,
  TFMINI_PARSE_BYTE7 , TFMINI_PARSE_CHECKSUM
}
 

Functions

void tfmini_init (void)
 Initialization function. More...
 
void tfmini_event (void)
 Lidar event function Receive bytes from the UART port and parse them. More...
 
void tfmini_downlink (void)
 

Variables

struct TFMini tfmini
 

Detailed Description

driver for the TFMini lidar

Definition in file tfmini.h.


Data Structure Documentation

◆ TFMini

struct TFMini

Definition at line 46 of file tfmini.h.

+ Collaboration diagram for TFMini:
Data Fields
bool compensate_rotation
struct link_device * device
float distance
uint8_t mode
uint8_t parse_crc
enum TFMiniParseStatus parse_status
uint16_t raw_dist
uint8_t raw_mode
uint16_t raw_strength
uint16_t strength
bool update_agl

Enumeration Type Documentation

◆ TFMiniParseStatus

Enumerator
TFMINI_INITIALIZE 
TFMINI_PARSE_HEAD 
TFMINI_PARSE_HEAD2 
TFMINI_PARSE_DIST_L 
TFMINI_PARSE_DIST_H 
TFMINI_PARSE_STRENGTH_L 
TFMINI_PARSE_STRENGTH_H 
TFMINI_PARSE_MODE 
TFMINI_PARSE_BYTE7 
TFMINI_PARSE_CHECKSUM 

Definition at line 33 of file tfmini.h.

Function Documentation

◆ tfmini_downlink()

void tfmini_downlink ( void  )

◆ tfmini_event()

void tfmini_event ( void  )

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

Definition at line 84 of file tfmini.c.

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

+ Here is the call graph for this function:

◆ tfmini_init()

void tfmini_init ( void  )

Variable Documentation

◆ tfmini

struct TFMini tfmini
extern

Definition at line 1 of file tfmini.c.

Referenced by tfmini_event(), tfmini_init(), tfmini_parse(), and tfmini_send_lidar().