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
65 pprz_transport_init(&laser_range_array.
transport);
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: {
88 if (
id < LASER_RANGE_ARRAY_NUM_SENSORS) {
89 float range = DL_IMCU_REMOTE_GROUND_range(
lra_msg_buf) / 1000.f;
void laser_range_array_init(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
bool msg_available
If we received a message.
void laser_range_array_event(void)
Main include for ABI (AirBorneInterface).
struct pprz_transport transport
The transport layer (PPRZ)
#define AGL_VL53L0_LASER_ARRAY_ID
static uint8_t lra_msg_buf[128]
The message buffer.
static struct laser_range_array_t laser_range_array
#define OBS_DETECTION_RANGE_ARRAY_ID
Common code for AP and FBW telemetry.
static float laser_range_array_orientations[]
struct link_device * device
The device which is uses for communication.
static void laser_range_array_parse_msg(void)