Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
guidance_plane.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Gautier Hattenberger <gautier.hattenberger@enac.fr>
3 *
4 * This file is part of paparazzi.
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
28#ifndef GUIDANCE_PLANE_H
29#define GUIDANCE_PLANE_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35#include "std.h"
38
40 // horizontal
45 // horizontal gains
46 float course_kp;
47 float course_kd;
49
50 // vertical
55 // vertical gains, pitch and throttle
57 float climb_kp;
60 float p_kp;
61 float p_kd;
62 float p_ki;
63 float t_kp;
64 float t_kd;
65 float t_ki;
66
67 // outputs
68 float roll_cmd;
69 float pitch_cmd;
70 int32_t throttle_cmd; // Throttle command (in pprz_t)
71};
72
75extern struct GuidancePlane guidance_plane;
76
77extern void guidance_plane_init(void);
78extern void guidance_plane_enter(void);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* GUIDANCE_PLANE_H */
float climb_max_setpoint
struct GuidancePlane guidance_plane
Guidance PID structyre.
void guidance_plane_enter(void)
float pitch_min_setpoint
float course_pre_bank_correction
void guidance_plane_init(void)
float pitch_max_setpoint
struct ThrustSetpoint guidance_plane_thrust_from_nav(bool in_flight)
run vertical control loop for position and speed control
struct StabilizationSetpoint guidance_plane_attitude_from_nav(bool in_flight)
run horizontal control loop for position and speed control
float climb_throttle_increment
float roll_max_setpoint
int32_t throttle_cmd
float altitude_setpoint
uint16_t foo
Definition main_demo5.c:58
Paparazzi floating point algebra.
Paparazzi fixed point algebra.
Stabilization setpoint.
Thrust setpoint // TODO to a setpoint header Structure to store the desired thrust vector with differ...
int int32_t
Typedef defining 32 bit int type.