|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
simulation of a lidar More...
#include "tfmini.h"#include "state.h"#include "pprzlink/messages.h"#include "modules/datalink/downlink.h"#include "modules/core/abi.h"#include "modules/datalink/telemetry.h"Go to the source code of this file.
Macros | |
| #define | LIDAR_MIN_RANGE 0.1 |
| #define | LIDAR_MAX_RANGE 12.0 |
Functions | |
| static void | tfmini_send_lidar (struct transport_tx *trans, struct link_device *dev) |
| Downlink message lidar. | |
| void | tfmini_init (void) |
| Initialization function. | |
| void | tfmini_event (void) |
| Lidar event function Receive bytes from the UART port and parse them. | |
| void | sim_overwrite_lidar (void) |
| void | setLidarDistance_f (float distance) |
| Set the distance of the lidar This function is used in NPS to set the distance of the lidar. | |
| void | tfmini_send_abi (void) |
Variables | |
| struct TFMini | tfmini |
simulation of a lidar
Definition in file tfmini_nps.c.
| #define LIDAR_MAX_RANGE 12.0 |
Definition at line 37 of file tfmini_nps.c.
Referenced by setLidarDistance_f().
| #define LIDAR_MIN_RANGE 0.1 |
Definition at line 36 of file tfmini_nps.c.
| void setLidarDistance_f | ( | float | distance | ) |
Set the distance of the lidar This function is used in NPS to set the distance of the lidar.
Definition at line 129 of file tfmini_nps.c.
References LIDAR_MAX_RANGE, tfmini, and tfmini_send_abi().
Referenced by sim_overwrite_lidar().
| void sim_overwrite_lidar | ( | void | ) |
Definition at line 83 of file tfmini_nps.c.
References Wall::count, distance_to_wall(), gps, ned_of_lla_point_i(), p, Wall::points_ltp, FloatEulers::psi, servoLidar, setLidarDistance_f(), stateGetNedOrigin_i(), stateGetNedToBodyEulers_f(), stateGetPositionEnu_f(), stateIsLocalCoordinateValid(), wall_system, FloatVect2::x, NedCoor_i::x, FloatVect2::y, and NedCoor_i::y.
Referenced by tfmini_event().
| void tfmini_event | ( | void | ) |
Lidar event function Receive bytes from the UART port and parse them.
Definition at line 75 of file tfmini_nps.c.
References sim_overwrite_lidar().
| void tfmini_init | ( | void | ) |
Initialization function.
Definition at line 63 of file tfmini_nps.c.
References DefaultPeriodic, register_periodic_telemetry(), tfmini, and tfmini_send_lidar().
| void tfmini_send_abi | ( | void | ) |
Definition at line 140 of file tfmini_nps.c.
References AGL_LIDAR_TFMINI_ID, get_sys_time_usec(), and tfmini.
Referenced by setLidarDistance_f().
|
static |
Downlink message lidar.
Definition at line 47 of file tfmini_nps.c.
| struct TFMini tfmini |
Definition at line 39 of file tfmini_nps.c.