Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
laser_range_array.c File Reference
#include "modules/range_finder/laser_range_array.h"
#include "generated/airframe.h"
#include "pprzlink/pprz_transport.h"
#include "pprzlink/intermcu_msg.h"
#include "mcu_periph/uart.h"
#include "modules/core/abi.h"
#include "message_pragmas.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
+ Include dependency graph for laser_range_array.c:

Go to the source code of this file.

Data Structures

struct  laser_range_array_t
 

Macros

#define VL53L0_MAX_VAL   8.191f
 

Functions

void laser_range_array_init (void)
 
static void laser_range_array_parse_msg (void)
 
void laser_range_array_event (void)
 

Variables

static struct laser_range_array_t laser_range_array
 
static uint8_t lra_msg_buf [128]
 The message buffer. More...
 
static float laser_range_array_orientations [] = LASER_RANGE_ARRAY_ORIENTATIONS
 
static uint8_t agl_id = 255
 

Data Structure Documentation

◆ laser_range_array_t

struct laser_range_array_t

Definition at line 43 of file laser_range_array.c.

+ Collaboration diagram for laser_range_array_t:
Data Fields
struct link_device * device The device which is uses for communication.
bool msg_available If we received a message.
struct pprz_transport transport The transport layer (PPRZ)

Macro Definition Documentation

◆ VL53L0_MAX_VAL

#define VL53L0_MAX_VAL   8.191f

Definition at line 60 of file laser_range_array.c.

Function Documentation

◆ laser_range_array_event()

void laser_range_array_event ( void  )

◆ laser_range_array_init()

void laser_range_array_init ( void  )

◆ laser_range_array_parse_msg()

static void laser_range_array_parse_msg ( void  )
static

Definition at line 79 of file laser_range_array.c.

References agl_id, AGL_VL53L0_LASER_ARRAY_ID, get_sys_time_usec(), laser_range_array_orientations, lra_msg_buf, OBS_DETECTION_RANGE_ARRAY_ID, and VL53L0_MAX_VAL.

Referenced by laser_range_array_event().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ agl_id

uint8_t agl_id = 255
static

Definition at line 58 of file laser_range_array.c.

Referenced by laser_range_array_init(), and laser_range_array_parse_msg().

◆ laser_range_array

struct laser_range_array_t laser_range_array
static
Initial value:
= {
.device = (&((LASER_RANGE_ARRAY_PORT).device)),
.msg_available = false
}

Definition at line 1 of file laser_range_array.c.

Referenced by laser_range_array_event(), and laser_range_array_init().

◆ laser_range_array_orientations

float laser_range_array_orientations[] = LASER_RANGE_ARRAY_ORIENTATIONS
static

Definition at line 57 of file laser_range_array.c.

Referenced by laser_range_array_init(), and laser_range_array_parse_msg().

◆ lra_msg_buf

uint8_t lra_msg_buf[128]
static

The message buffer.

Definition at line 54 of file laser_range_array.c.

Referenced by laser_range_array_event(), and laser_range_array_parse_msg().