Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
guidance_plane.h File Reference

Guidance controller for planes in rotorcraft firmware using basic PID controller no airspeed control. More...

#include "std.h"
#include "math/pprz_algebra_int.h"
#include "math/pprz_algebra_float.h"
Include dependency graph for guidance_plane.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GuidancePlane

Functions

void guidance_plane_init (void)
void guidance_plane_enter (void)
struct StabilizationSetpoint guidance_plane_attitude_from_nav (bool in_flight)
 run horizontal control loop for position and speed control
struct ThrustSetpoint guidance_plane_thrust_from_nav (bool in_flight)
 run vertical control loop for position and speed control

Variables

struct GuidancePlane guidance_plane
 Guidance PID structyre.

Detailed Description

Guidance controller for planes in rotorcraft firmware using basic PID controller no airspeed control.

Definition in file guidance_plane.h.


Data Structure Documentation

◆ GuidancePlane

struct GuidancePlane

Definition at line 39 of file guidance_plane.h.

Data Fields
float altitude_setpoint
float climb_kp
float climb_max_setpoint
float climb_setpoint
float climb_throttle_increment
float course_kd
float course_kp
float course_pre_bank_correction
float course_setpoint
float cruise_throttle
float p_kd
float p_ki
float p_kp
float pitch_cmd
float pitch_max_setpoint
float pitch_min_setpoint
float pitch_of_vz
float pitch_trim
float roll_cmd
float roll_max_setpoint
float t_kd
float t_ki
float t_kp
int32_t throttle_cmd

Function Documentation

◆ guidance_plane_attitude_from_nav()

struct StabilizationSetpoint guidance_plane_attitude_from_nav ( bool in_flight)
extern

run horizontal control loop for position and speed control

Definition at line 128 of file guidance_plane.c.

References guidance_plane_attitude_from_nav(), if(), nav, NAV_HORIZONTAL_MODE_ATTITUDE, NAV_HORIZONTAL_MODE_GUIDED, NAV_HORIZONTAL_MODE_NONE, and UNUSED.

Referenced by control_mixing_heewing_nav_run(), and guidance_plane_attitude_from_nav().

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

◆ guidance_plane_enter()

void guidance_plane_enter ( void )
extern

Definition at line 276 of file guidance_plane.c.

References pitch_sum_err, and throttle_sum_err.

◆ guidance_plane_init()

◆ guidance_plane_thrust_from_nav()

struct ThrustSetpoint guidance_plane_thrust_from_nav ( bool in_flight)
extern

run vertical control loop for position and speed control

Definition at line 253 of file guidance_plane.c.

References guidance_plane, guidance_plane_set_pitch(), guidance_plane_set_throttle(), guidance_plane_thrust_from_nav(), if(), nav, NAV_VERTICAL_MODE_CLIMB, and NAV_VERTICAL_MODE_MANUAL.

Referenced by control_mixing_heewing_nav_run(), and guidance_plane_thrust_from_nav().

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

Variable Documentation

◆ guidance_plane