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"
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;
Main include for ABI (AirBorneInterface).
#define AGL_VL53L0_LASER_ARRAY_ID
#define OBS_DETECTION_RANGE_ARRAY_ID
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
static void laser_range_array_parse_msg(void)
struct link_device * device
The device which is uses for communication.
static float laser_range_array_orientations[]
struct pprz_transport transport
The transport layer (PPRZ)
void laser_range_array_init(void)
void laser_range_array_event(void)
static uint8_t lra_msg_buf[128]
The message buffer.
static struct laser_range_array_t laser_range_array
bool msg_available
If we received a message.
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.