Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gls.c File Reference

gps landing system More...

#include "generated/airframe.h"
#include "state.h"
#include "subsystems/navigation/gls.h"
#include "subsystems/nav.h"
#include "generated/flight_plan.h"
+ Include dependency graph for gls.c:

Go to the source code of this file.

Macros

#define APP_TARGET_SPEED   NOMINAL_AIRSPEED
 
#define MAX_WIND_ON_FINAL   0.8*APP_TARGET_SPEED
 
#define APP_ANGLE   RadOfDeg(5)
 
#define APP_INTERCEPT_RATE   0.625
 
#define APP_DISTANCE_AF_SD   100
 

Functions

static bool_t gls_compute_TOD (uint8_t _af, uint8_t _sd, uint8_t _tod, uint8_t _td)
 
bool_t gls_init (uint8_t _af, uint8_t _sd, uint8_t _tod, uint8_t _td)
 
bool_t gls (uint8_t _af, uint8_t _sd, uint8_t _tod, uint8_t _td)
 

Variables

float target_speed
 
float app_angle
 
float app_intercept_rate
 
float app_distance_af_sd
 
bool_t init = TRUE
 
float gs_on_final
 
float sd_tod
 
float sd_intercept
 
float sd_tod_x
 
float sd_tod_y
 

Detailed Description

gps landing system

gps landing system -automatic calculation of top of decent for const app angle -smooth intercept posible -landing direction is set by app fix / also possible in flight!!!

in airframe.xml it is possible to define

  1. APP_TARGET_SPEED
  2. APP_ANGLE
  3. APP_INTERCEPT_RATE
  4. APP_DISTANCE_AF_SD

1 - only efective with useairspeed flag 2 - defauld is an approach angle of 5 degree which should be fine for most planes 3 - const. acceleration in z direction to reach desiered pre_climb 4 - distance between approach fix and top of decent

Definition in file gls.c.

Macro Definition Documentation

#define APP_ANGLE   RadOfDeg(5)

Definition at line 66 of file gls.c.

Referenced by gls_init().

#define APP_DISTANCE_AF_SD   100

Definition at line 74 of file gls.c.

Referenced by gls_init().

#define APP_INTERCEPT_RATE   0.625

Definition at line 70 of file gls.c.

Referenced by gls_init().

#define APP_TARGET_SPEED   NOMINAL_AIRSPEED

Definition at line 61 of file gls.c.

Referenced by gls_init().

#define MAX_WIND_ON_FINAL   0.8*APP_TARGET_SPEED

Definition at line 63 of file gls.c.

Referenced by gls_compute_TOD().

Function Documentation

static bool_t gls_compute_TOD ( uint8_t  _af,
uint8_t  _sd,
uint8_t  _tod,
uint8_t  _td 
)
inlinestatic

Definition at line 83 of file gls.c.

References app_angle, app_distance_af_sd, app_intercept_rate, FALSE, gs_on_final, MAX_WIND_ON_FINAL, sd_intercept, sd_tod, sd_tod_x, sd_tod_y, stateGetHorizontalWindspeed_f(), target_speed, WaypointAlt, WaypointX, WaypointY, FloatVect2::x, and FloatVect2::y.

Referenced by gls_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool_t gls_init ( uint8_t  _af,
uint8_t  _sd,
uint8_t  _tod,
uint8_t  _td 
)

Definition at line 135 of file gls.c.

References app_angle, APP_ANGLE, app_distance_af_sd, APP_DISTANCE_AF_SD, app_intercept_rate, APP_INTERCEPT_RATE, APP_TARGET_SPEED, FALSE, gls_compute_TOD(), init, target_speed, and TRUE.

+ Here is the call graph for this function:

Variable Documentation

float app_angle

Definition at line 54 of file gls.c.

Referenced by gls(), gls_compute_TOD(), and gls_init().

float app_distance_af_sd

Definition at line 56 of file gls.c.

Referenced by gls(), gls_compute_TOD(), and gls_init().

float app_intercept_rate

Definition at line 55 of file gls.c.

Referenced by gls(), gls_compute_TOD(), and gls_init().

float gs_on_final

Definition at line 77 of file gls.c.

Referenced by gls(), and gls_compute_TOD().

bool_t init = TRUE

Definition at line 58 of file gls.c.

Referenced by gls(), gls_init(), and main().

float sd_intercept

Definition at line 79 of file gls.c.

Referenced by gls(), and gls_compute_TOD().

float sd_tod

Definition at line 78 of file gls.c.

Referenced by gls_compute_TOD().

float sd_tod_x

Definition at line 80 of file gls.c.

Referenced by gls(), and gls_compute_TOD().

float sd_tod_y

Definition at line 81 of file gls.c.

Referenced by gls(), and gls_compute_TOD().

float target_speed

Definition at line 53 of file gls.c.

Referenced by gls(), gls_compute_TOD(), and gls_init().