Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
rot_wing_automation.c File Reference
#include "modules/rot_wing_drone/rot_wing_automation.h"
#include "state.h"
#include "modules/datalink/telemetry.h"
#include "filters/low_pass_filter.h"
#include "math/pprz_algebra_float.h"
#include "modules/nav/waypoints.h"
#include "generated/modules.h"
+ Include dependency graph for rot_wing_automation.c:

Go to the source code of this file.

Macros

#define ROT_WING_AUTOMATION_TRANS_ACCEL   1.0
 
#define ROT_WING_AUTOMATION_TRANS_DECEL   0.5
 
#define ROT_WING_AUTOMATION_TRANS_LENGTH   200.0
 
#define ROT_WING_AUTOMATION_TRANS_AIRSPEED   15.0
 
#define ROT_WING_AUTOMATION_WIND_FILT_CUTOFF   0.001
 

Functions

void update_waypoint_rot_wing_automation (uint8_t wp_id, struct FloatVect3 *target_ned)
 
void update_wind_vector (void)
 
void init_rot_wing_automation (void)
 
void periodic_rot_wing_automation (void)
 
void rot_wing_vis_transition (uint8_t wp_transition_id, uint8_t wp_decel_id, uint8_t wp_end_id)
 

Variables

struct rot_wing_automation rot_wing_a
 
Butterworth2LowPass rot_wing_automation_wind_filter [2]
 

Detailed Description

Author
Dennis van Wijngaarden D.C.v.nosp@m.anWi.nosp@m.jngaa.nosp@m.rden.nosp@m.@tude.nosp@m.lft..nosp@m.nl Fucntions to automate the navigation and guidance of the rotating wing drone

Definition in file rot_wing_automation.c.

Macro Definition Documentation

◆ ROT_WING_AUTOMATION_TRANS_ACCEL

#define ROT_WING_AUTOMATION_TRANS_ACCEL   1.0

Definition at line 38 of file rot_wing_automation.c.

◆ ROT_WING_AUTOMATION_TRANS_AIRSPEED

#define ROT_WING_AUTOMATION_TRANS_AIRSPEED   15.0

Definition at line 53 of file rot_wing_automation.c.

◆ ROT_WING_AUTOMATION_TRANS_DECEL

#define ROT_WING_AUTOMATION_TRANS_DECEL   0.5

Definition at line 43 of file rot_wing_automation.c.

◆ ROT_WING_AUTOMATION_TRANS_LENGTH

#define ROT_WING_AUTOMATION_TRANS_LENGTH   200.0

Definition at line 48 of file rot_wing_automation.c.

◆ ROT_WING_AUTOMATION_WIND_FILT_CUTOFF

#define ROT_WING_AUTOMATION_WIND_FILT_CUTOFF   0.001

Definition at line 58 of file rot_wing_automation.c.

Function Documentation

◆ init_rot_wing_automation()

◆ periodic_rot_wing_automation()

void periodic_rot_wing_automation ( void  )

Definition at line 91 of file rot_wing_automation.c.

References rot_wing_a, stateGetAirspeed_f(), rot_wing_automation::trans_airspeed, rot_wing_automation::transitioned, and update_wind_vector().

+ Here is the call graph for this function:

◆ rot_wing_vis_transition()

◆ update_waypoint_rot_wing_automation()

void update_waypoint_rot_wing_automation ( uint8_t  wp_id,
struct FloatVect3 target_ned 
)
inline

Definition at line 103 of file rot_wing_automation.c.

References DefaultChannel, DefaultDevice, ENU_OF_TO_NED, waypoint_set_enu(), waypoints, point::x, and point::y.

Referenced by rot_wing_vis_transition().

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

◆ update_wind_vector()

void update_wind_vector ( void  )
inline

Variable Documentation

◆ rot_wing_a

◆ rot_wing_automation_wind_filter

Butterworth2LowPass rot_wing_automation_wind_filter[2]

Definition at line 64 of file rot_wing_automation.c.

Referenced by init_rot_wing_automation(), and update_wind_vector().