Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
lidar_correction.h File Reference
Include dependency graph for lidar_correction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ObstaclePoint
struct  WallConfig
struct  Wall
struct  WallSystem

Macros

#define MAX_WALLS   10
#define MAX_POINTS   5

Functions

void init_walls (void)
void convert_walls_to_ltp (void)
float find_nearest_wall (const struct FloatVect2 *obstacle_pos, struct FloatVect2 *nearest_point)
float distance_to_wall (float theta, const struct FloatVect2 *P, const struct FloatVect2 *A, const struct FloatVect2 *B)

Variables

struct WallSystem wall_system

Data Structure Documentation

◆ ObstaclePoint

struct ObstaclePoint

Definition at line 38 of file lidar_correction.h.

Data Fields
float alt
float lat_deg
float lon_deg

◆ WallConfig

struct WallConfig

Definition at line 44 of file lidar_correction.h.

Collaboration diagram for WallConfig:
Data Fields
uint8_t count
struct ObstaclePoint points[MAX_POINTS]

◆ Wall

struct Wall

Definition at line 51 of file lidar_correction.h.

Collaboration diagram for Wall:
Data Fields
bool converted
uint8_t count
struct FloatVect2 points_ltp[MAX_POINTS]
struct LlaCoor_f points_wgs84[MAX_POINTS]

◆ WallSystem

struct WallSystem

Definition at line 58 of file lidar_correction.h.

Collaboration diagram for WallSystem:
Data Fields
bool converted_to_ltp
uint8_t wall_count
struct Wall walls[MAX_WALLS]

Macro Definition Documentation

◆ MAX_POINTS

#define MAX_POINTS   5

Definition at line 34 of file lidar_correction.h.

◆ MAX_WALLS

#define MAX_WALLS   10

Definition at line 33 of file lidar_correction.h.

Function Documentation

◆ convert_walls_to_ltp()

void convert_walls_to_ltp ( void )
extern

Definition at line 168 of file lidar_correction.c.

References ned_of_lla_point_f(), p, stateGetNedOrigin_f(), stateIsLocalCoordinateValid(), wall_system, NedCoor_f::x, and NedCoor_f::y.

Referenced by ins_update_lidar().

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

◆ distance_to_wall()

float distance_to_wall ( float theta,
const struct FloatVect2 * P,
const struct FloatVect2 * A,
const struct FloatVect2 * B )
extern

Definition at line 48 of file lidar_correction.c.

References A, B, P, and s.

Referenced by sim_overwrite_lidar().

Here is the caller graph for this function:

◆ find_nearest_wall()

float find_nearest_wall ( const struct FloatVect2 * obstacle_pos,
struct FloatVect2 * nearest_point )
extern

Definition at line 97 of file lidar_correction.c.

References Wall::count, distance_to_segment(), p, Wall::points_ltp, wall_system, FloatVect2::x, and FloatVect2::y.

Here is the call graph for this function:

◆ init_walls()

Variable Documentation

◆ wall_system

struct WallSystem wall_system
extern