Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the mateksys_3901_l0x sensor via MSP protocol output. More...
#include "std.h"
#include "stdbool.h"
Go to the source code of this file.
Data Structures | |
struct | Mateksys3901l0X |
Macros | |
#define | MSP2_IS_SENSOR_MESSAGE(x) ((x) >= 0x1F00 && (x) <= 0x1FFF) |
#define | MSP2_SENSOR_RANGEFINDER 0x1F01 |
#define | MSP2_SENSOR_OPTIC_FLOW 0x1F02 |
Functions | |
void | mateksys3901l0x_init (void) |
Initialization function. More... | |
void | mateksys3901l0x_event (void) |
Receive bytes from the UART port and parse them. More... | |
void | mateksys3901l0x_downlink (void) |
Variables | |
struct Mateksys3901l0X | mateksys3901l0x |
Driver for the mateksys_3901_l0x sensor via MSP protocol output.
Driver for the mateksys_3901_l0x sensor via MSPx protocol output.
Definition in file mateksys_3901_l0x.h.
struct Mateksys3901l0X |
Definition at line 74 of file mateksys_3901_l0x.h.
Data Fields | ||
---|---|---|
struct link_device * | device | |
float | distance_clean | |
int32_t | distancemm | |
uint8_t | distancemm_quality | |
uint8_t | motion_quality | |
int32_t | motionX | |
int32_t | motionX_clean | |
int32_t | motionY | |
int32_t | motionY_clean | |
uint8_t | parse_crc | |
enum Mateksys3901l0XParseStatus | parse_status | |
uint8_t | sensor_id | |
float | time_sec | |
float | velocityX | |
float | velocityY |
#define MSP2_IS_SENSOR_MESSAGE | ( | x | ) | ((x) >= 0x1F00 && (x) <= 0x1FFF) |
Definition at line 42 of file mateksys_3901_l0x.h.
#define MSP2_SENSOR_OPTIC_FLOW 0x1F02 |
Definition at line 45 of file mateksys_3901_l0x.h.
#define MSP2_SENSOR_RANGEFINDER 0x1F01 |
Definition at line 44 of file mateksys_3901_l0x.h.
Definition at line 47 of file mateksys_3901_l0x.h.
void mateksys3901l0x_downlink | ( | void | ) |
void mateksys3901l0x_event | ( | void | ) |
Receive bytes from the UART port and parse them.
Definition at line 111 of file mateksys_3901_l0x.c.
References Mateksys3901l0X::device, mateksys3901l0x, mateksys3901l0x_parse(), MATEKSYS_3901_L0X_INITIALIZE, and Mateksys3901l0X::parse_status.
void mateksys3901l0x_init | ( | void | ) |
Initialization function.
Definition at line 92 of file mateksys_3901_l0x.c.
References DefaultPeriodic, Mateksys3901l0X::device, Mateksys3901l0X::distancemm, Mateksys3901l0X::distancemm_quality, mateksys3901l0x, mateksys3901l0x_send_optical_flow(), MATEKSYS_3901_L0X_PARSE_HEAD, Mateksys3901l0X::motion_quality, Mateksys3901l0X::motionX, Mateksys3901l0X::motionY, Mateksys3901l0X::parse_crc, Mateksys3901l0X::parse_status, and register_periodic_telemetry().
struct Mateksys3901l0X mateksys3901l0x |
Definition at line 61 of file mateksys_3901_l0x.c.
Referenced by mateksys3901l0x_event(), mateksys3901l0x_init(), mateksys3901l0x_parse(), and mateksys3901l0x_send_optical_flow().