|
Paparazzi UAS v7.1_unstable
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) |
| #define | MSP2_SENSOR_RANGEFINDER 0x1F01 |
| #define | MSP2_SENSOR_OPTIC_FLOW 0x1F02 |
Functions | |
| void | mateksys3901l0x_init (void) |
| Initialization function. | |
| void | mateksys3901l0x_event (void) |
| Receive bytes from the UART port and parse them. | |
| void | mateksys3901l0x_downlink (void) |
| void | mateksys_3901_l0x_scale_X (float scalex) |
| Scale the Flow X. | |
| void | mateksys_3901_l0x_scale_Y (float scaley) |
| Scale the Flow Y. | |
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 72 of file mateksys_3901_l0x.h.
| Data Fields | ||
|---|---|---|
| struct link_device * | device | |
| float | distance_compensated | |
| float | distancemm | |
| uint8_t | distancemm_quality | |
| int32_t | distancemm_temp | |
| uint8_t | motion_quality | |
| int32_t | motionX | |
| int32_t | motionX_temp | |
| int32_t | motionY | |
| int32_t | motionY_temp | |
| uint8_t | parse_crc | |
| enum Mateksys3901l0XParseStatus | parse_status | |
| float | scaler_x | |
| float | scaler_y | |
| uint8_t | sensor_id | |
| float | time_usec | |
| float | velocityX | |
| float | velocityY | |
| #define MSP2_IS_SENSOR_MESSAGE | ( | x | ) |
Definition at line 40 of file mateksys_3901_l0x.h.
| #define MSP2_SENSOR_OPTIC_FLOW 0x1F02 |
Definition at line 43 of file mateksys_3901_l0x.h.
| #define MSP2_SENSOR_RANGEFINDER 0x1F01 |
Definition at line 42 of file mateksys_3901_l0x.h.
Definition at line 45 of file mateksys_3901_l0x.h.
|
extern |
|
extern |
Receive bytes from the UART port and parse them.
Definition at line 151 of file mateksys_3901_l0x.c.
References mateksys3901l0x, mateksys3901l0x_parse(), and MATEKSYS_3901_L0X_INITIALIZE.
|
extern |
Initialization function.
Definition at line 110 of file mateksys_3901_l0x.c.
References DefaultPeriodic, mateksys3901l0x, mateksys3901l0x_send_optical_flow(), MATEKSYS_3901_L0X_FLOW_X_SCALER, MATEKSYS_3901_L0X_FLOW_Y_SCALER, MATEKSYS_3901_L0X_PARSE_HEAD, and register_periodic_telemetry().
|
extern |
|
extern |
|
extern |
Definition at line 78 of file mateksys_3901_l0x.c.
Referenced by mateksys3901l0x_event(), mateksys3901l0x_init(), mateksys3901l0x_parse(), mateksys3901l0x_send_optical_flow(), mateksys_3901_l0x_scale_X(), and mateksys_3901_l0x_scale_Y().