|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
29 #include "generated/airframe.h"
31 #include "pprzlink/pprz_transport.h"
32 #include "pprzlink/intermcu_msg.h"
37 #include "message_pragmas.h"
39 #include "pprzlink/messages.h"
56 PRINT_CONFIG_VAR(LASER_RANGE_ARRAY_NUM_SENSORS)
60 #define VL53L0_MAX_VAL 8.191f
67 #if LASER_RANGE_ARRAY_SEND_AGL
69 for (
int k = 0; k < LASER_RANGE_ARRAY_NUM_SENSORS; k++) {
85 case DL_IMCU_REMOTE_GROUND: {
89 if (
id < LASER_RANGE_ARRAY_NUM_SENSORS) {
90 float range = DL_IMCU_REMOTE_GROUND_range(
lra_msg_buf) / 1000.f;
static void laser_range_array_parse_msg(void)
struct link_device * device
The device which is uses for communication.
#define OBS_DETECTION_RANGE_ARRAY_ID
void laser_range_array_init(void)
void laser_range_array_event(void)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
struct pprz_transport transport
The transport layer (PPRZ)
#define AGL_VL53L0_LASER_ARRAY_ID
Common code for AP and FBW telemetry.
static uint8_t lra_msg_buf[128]
The message buffer.
static float laser_range_array_orientations[]
static struct laser_range_array_t laser_range_array
bool msg_available
If we received a message.