|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Guidance controller with PID for rotorcrafts. More...
#include "std.h"#include "math/pprz_algebra_int.h"#include "firmwares/rotorcraft/guidance/guidance_h.h"#include "firmwares/rotorcraft/guidance/guidance_v.h"Go to the source code of this file.
Data Structures | |
| struct | GuidancePID |
Functions | |
| void | guidance_pid_init (void) |
| void | guidance_pid_h_enter (void) |
| void | guidance_pid_v_enter (void) |
| struct StabilizationSetpoint | guidance_pid_h_run_pos (bool in_flight, struct HorizontalGuidance *gh) |
| struct StabilizationSetpoint | guidance_pid_h_run_speed (bool in_flight, struct HorizontalGuidance *gh) |
| struct StabilizationSetpoint | guidance_pid_h_run_accel (bool in_flight, struct HorizontalGuidance *gh) |
| struct ThrustSetpoint | guidance_pid_v_run_pos (bool in_flight, struct VerticalGuidance *gv) |
| struct ThrustSetpoint | guidance_pid_v_run_speed (bool in_flight, struct VerticalGuidance *gv) |
| struct ThrustSetpoint | guidance_pid_v_run_accel (bool in_flight, struct VerticalGuidance *gv) |
| void | guidance_pid_set_h_igain (uint32_t igain) |
| settings handler | |
| void | guidance_pid_set_v_igain (uint32_t igain) |
| const struct Int32Vect2 * | guidance_pid_get_h_pos_err (void) |
| Gets the position error. | |
Variables | |
| struct GuidancePID | guidance_pid |
| Guidance PID structyre. | |
Guidance controller with PID for rotorcrafts.
Definition in file guidance_pid.h.
| struct GuidancePID |
|
extern |
Gets the position error.
| none. |
Definition at line 417 of file guidance_pid.c.
References guidance_pid_pos_err.
|
extern |
Definition at line 389 of file guidance_pid.c.
References nav, FloatEulers::psi, and stateGetNedToBodyEulers_f().
|
extern |
References guidance_pid_h_run_accel(), guidance_pid_v_run_pos(), and guidance_pid_v_run_speed().
|
extern |
Definition at line 278 of file guidance_pid.c.
References guidance_pid_h_run(), guidance_pid_h_run_pos(), guidance_pid_pos_err, guidance_pid_speed_err, MAX_POS_ERR, MAX_SPEED_ERR, stateGetPositionNed_i(), stateGetSpeedNed_i(), VECT2_DIFF, and VECT2_STRIM.
Referenced by guidance_pid_h_run_pos().
|
extern |
Definition at line 294 of file guidance_pid.c.
References guidance_pid_h_run(), guidance_pid_h_run_speed(), guidance_pid_pos_err, guidance_pid_speed_err, INT_VECT2_ZERO, MAX_SPEED_ERR, stateGetSpeedNed_i(), VECT2_DIFF, and VECT2_STRIM.
Referenced by guidance_pid_h_run_speed().
|
extern |
Definition at line 184 of file guidance_pid.c.
References DefaultPeriodic, GUIDANCE_H_AGAIN, GUIDANCE_H_APPROX_FORCE_BY_THRUST, GUIDANCE_H_VGAIN, guidance_pid, guidance_pid_pos_err, guidance_pid_speed_err, guidance_pid_trim_att_integrator, guidance_pid_v_fb_cmd, guidance_pid_v_ff_cmd, guidance_pid_z_sum_err, GUIDANCE_V_ADAPT_THROTTLE_ENABLED, INT_VECT2_ZERO, register_periodic_telemetry(), send_hover_loop(), and send_vert_loop().
|
extern |
settings handler
Definition at line 404 of file guidance_pid.c.
References guidance_pid, guidance_pid_trim_att_integrator, and INT_VECT2_ZERO.
|
extern |
Definition at line 410 of file guidance_pid.c.
References guidance_pid, and guidance_pid_z_sum_err.
|
extern |
Definition at line 395 of file guidance_pid.c.
References guidance_pid_z_sum_err.
|
extern |
|
extern |
Definition at line 371 of file guidance_pid.c.
References guidance_pid_v_run(), and guidance_pid_v_run_pos().
Referenced by guidance_hybrid_v_run_pos(), guidance_pid_h_run_accel(), and guidance_pid_v_run_pos().
|
extern |
Definition at line 376 of file guidance_pid.c.
References guidance_pid_v_run(), and guidance_pid_v_run_speed().
Referenced by guidance_hybrid_v_run_speed(), guidance_pid_h_run_accel(), and guidance_pid_v_run_speed().
|
extern |
Guidance PID structyre.
Definition at line 124 of file guidance_pid.c.
Referenced by guidance_hybrid_vertical(), guidance_pid_h_run(), guidance_pid_init(), guidance_pid_set_h_igain(), guidance_pid_set_v_igain(), guidance_pid_v_run(), send_hover_loop(), and send_vert_loop().