Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

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

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

void tfmini_downlink ( void  )
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  )

Variable Documentation

struct TFMini tfmini

Definition at line 38 of file tfmini.c.