27 #ifndef GUIDANCE_H_REF_H
28 #define GUIDANCE_H_REF_H
34 #include "generated/airframe.h"
38 #ifndef GUIDANCE_H_REF_MAX_SPEED
39 #define GUIDANCE_H_REF_MAX_SPEED 5.
50 #ifndef GUIDANCE_H_REF_MAX_ACCEL
51 #define GUIDANCE_H_REF_MAX_ACCEL 5.66
58 #define GH_POS_REF_FRAC 37
float gh_set_zeta(float zeta)
float gh_max_speed
Current maximum speed for waypoint navigation.
float zeta
second order model damping
struct FloatVect2 accel
Reference model acceleration.
void gh_set_ref(struct Int32Vect2 pos, struct FloatVect2 speed, struct FloatVect2 accel)
float tau
first order time constant
void gh_update_ref_from_accel_sp(struct FloatVect2 accel_sp)
float gh_set_tau(float tau)
float omega
second order model natural frequency
struct Int64Vect2 pos
Reference model position.
float gh_set_omega(float omega)
void gh_update_ref_from_pos_sp(struct Int32Vect2 pos_sp)
void gh_update_ref_from_speed_sp(struct FloatVect2 speed_sp)
struct FloatVect2 speed
Reference model speed.
struct GuidanceHRef gh_ref
float gh_set_max_speed(float max_speed)
Set a new maximum speed for waypoint navigation.
float dt
Integration timestep.
float max_speed
Current maximum speed for waypoint navigation.
struct FloatVect3 speed_sp
Paparazzi generic algebra macros.
Paparazzi floating point algebra.
Paparazzi fixed point algebra.