35 #define GUIDANCE_V_MODE_KILL 0
36 #define GUIDANCE_V_MODE_RC_DIRECT 1
37 #define GUIDANCE_V_MODE_RC_CLIMB 2
38 #define GUIDANCE_V_MODE_CLIMB 3
39 #define GUIDANCE_V_MODE_HOVER 4
40 #define GUIDANCE_V_MODE_NAV 5
41 #define GUIDANCE_V_MODE_MODULE 6
42 #define GUIDANCE_V_MODE_FLIP 7
43 #define GUIDANCE_V_MODE_GUIDED 8
123 #define guidance_v_SetKi(_val) { \
124 guidance_v_ki = _val; \
125 guidance_v_z_sum_err = 0; \
bool guidance_v_guided_vel_enabled
void guidance_v_notify_in_flight(bool in_flight)
Adaptation block of the vertical guidance.
int32_t guidance_v_fb_cmd
feed-back command
int32_t guidance_v_kd
vertical control D-gain
int32_t guidance_v_zdd_ref
vertical acceleration reference in meter/s^2.
void guidance_v_read_rc(void)
int32_t guidance_v_z_sp
altitude setpoint in meters (input).
void guidance_v_init(void)
int32_t guidance_v_zd_sp
vertical speed setpoint in meter/s (input).
void guidance_v_mode_changed(uint8_t new_mode)
int32_t guidance_v_z_sum_err
accumulator for I-gain
bool guidance_v_adapt_throttle_enabled
Use adaptive throttle command estimation.
float guidance_v_nominal_throttle
nominal throttle for hover.
int32_t guidance_v_zd_ref
vertical speed reference in meter/s.
void guidance_v_run(bool in_flight)
int32_t guidance_v_ff_cmd
feed-forward command
Reference generation for vertical guidance.
int32_t guidance_v_delta_t
thrust command.
int32_t guidance_v_kp
vertical control P-gain
int32_t guidance_v_thrust_coeff
int32_t guidance_v_ki
vertical control I-gain
bool guidance_v_set_guided_vz(float vz)
Set z velocity setpoint in GUIDED mode.
bool guidance_v_set_guided_z(float z)
Set z setpoint in GUIDED mode.
int32_t guidance_v_z_ref
altitude reference in meters.