|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/ctrl/eff_scheduling_rotwing.h"#include "generated/airframe.h"#include "state.h"#include "firmwares/rotorcraft/stabilization/stabilization_indi.h"#include "firmwares/rotorcraft/guidance/guidance_indi_hybrid.h"#include "modules/rotwing_drone/rotwing_state.h"#include "autopilot.h"#include "modules/actuators/actuators.h"#include "modules/core/abi.h"Go to the source code of this file.
Macros | |
| #define | WING_ROTATION_CAN_ROTWING_ID ABI_BROADCAST |
| ABI binding wing position data. | |
| #define | AIRSPEED_IMPORTANCE_IN_FORWARD_WEIGHT 16 |
Variables | |
| struct rotwing_eff_sched_param_t | eff_sched_p |
| int32_t | rw_flap_offset = 0 |
| float | eff_sched_pusher_time = 0.002 |
| float | roll_eff_slider = 12.f |
| static const float | Wu_gih_original [GUIDANCE_INDI_HYBRID_U] = GUIDANCE_INDI_WLS_WU |
| struct rotwing_eff_sched_var_t | eff_sched_var |
| static abi_event | wing_position_ev |
| float | eff_scheduling_rotwing_lift_d = 0.0f |
Definition in file eff_scheduling_rotwing.c.
| #define AIRSPEED_IMPORTANCE_IN_FORWARD_WEIGHT 16 |
Referenced by guidance_indi_hybrid_set_wls_settings().
| #define WING_ROTATION_CAN_ROTWING_ID ABI_BROADCAST |
ABI binding wing position data.
Definition at line 199 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_init().
|
inline |
Definition at line 154 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_update_aileron_effectiveness(), and eff_scheduling_rotwing_update_hover_motor_effectiveness().
| void eff_scheduling_rotwing_init | ( | void | ) |
Definition at line 218 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, wing_position_cb(), wing_position_ev, and WING_ROTATION_CAN_ROTWING_ID.
| void eff_scheduling_rotwing_periodic | ( | void | ) |
Definition at line 248 of file eff_scheduling_rotwing.c.
References eff_scheduling_rotwing_schedule_liftd(), eff_scheduling_rotwing_update_aileron_effectiveness(), eff_scheduling_rotwing_update_airspeed(), eff_scheduling_rotwing_update_cmd(), eff_scheduling_rotwing_update_elevator_effectiveness(), eff_scheduling_rotwing_update_flaperon_effectiveness(), eff_scheduling_rotwing_update_hover_motor_effectiveness(), eff_scheduling_rotwing_update_MMOI(), eff_scheduling_rotwing_update_pusher_effectiveness(), eff_scheduling_rotwing_update_rudder_effectiveness(), and eff_scheduling_rotwing_update_wing_angle().
|
inline |
Definition at line 431 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, and eff_scheduling_rotwing_lift_d.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 395 of file eff_scheduling_rotwing.c.
References bound_or_zero(), eff_sched_p, eff_sched_var, g1g2, RW_ap, and RW_aq.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 301 of file eff_scheduling_rotwing.c.
References eff_sched_var, and stateGetAirspeed_f().
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 292 of file eff_scheduling_rotwing.c.
References actuator_state_filt_vect, and eff_sched_var.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 355 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, g1g2, and RW_aq.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 408 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, g1g2, and RW_ap.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 309 of file eff_scheduling_rotwing.c.
References actuator_state_filt_vect, bound_or_zero(), eff_sched_p, eff_sched_var, g1g2, MAX_PPRZ, RW_ap, and RW_aq.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 282 of file eff_scheduling_rotwing.c.
References eff_sched_p, and eff_sched_var.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 416 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, g1g2, and RW_aX.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 377 of file eff_scheduling_rotwing.c.
References eff_sched_p, eff_sched_var, g1g2, and RW_ar.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 267 of file eff_scheduling_rotwing.c.
References eff_sched_var.
Referenced by eff_scheduling_rotwing_periodic().
|
inline |
Definition at line 446 of file eff_scheduling_rotwing.c.
|
inline |
Definition at line 487 of file eff_scheduling_rotwing.c.
References actuator_state_filt_vect, rotwing_eff_sched_var_t::airspeed, AIRSPEED_IMPORTANCE_IN_FORWARD_WEIGHT, g1g2, guidance_indi_max_bank, GUIDANCE_INDI_MAX_PITCH, GUIDANCE_INDI_MIN_PITCH, guidance_indi_pitch_pref_deg, GUIDANCE_INDI_WLS_PRIORITIES, MAX_PPRZ, ROTWING_QUAD_PREF_PITCH, ROTWING_SKEW_ANGLE_STEP, rotwing_state, rotwing_state_hover_motors_idling(), rotwing_state_hover_motors_running(), rotwing_state_pusher_motor_running(), RW_aX, RW_aZ, stateGetAirspeed_f(), and Wu_gih_original.
| void stabilization_indi_set_wls_settings | ( | void | ) |
Function that sets the u_min, u_max and u_pref if function not elsewhere defined.
Definition at line 450 of file eff_scheduling_rotwing.c.
References act_is_servo, act_pref, actuator_state_filt_vect, actuators_pprz, eff_sched_pusher_time, MAX_PPRZ, rw_flap_offset, and wls_stab_p.
|
static |
Definition at line 204 of file eff_scheduling_rotwing.c.
References eff_sched_var, UNUSED, and wing_position_cb().
Referenced by eff_scheduling_rotwing_init(), wing_position_cb(), wing_position_cb(), wing_position_cb(), and wing_position_cb().
| struct rotwing_eff_sched_param_t eff_sched_p |
Definition at line 127 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_init(), eff_scheduling_rotwing_schedule_liftd(), eff_scheduling_rotwing_update_aileron_effectiveness(), eff_scheduling_rotwing_update_elevator_effectiveness(), eff_scheduling_rotwing_update_flaperon_effectiveness(), eff_scheduling_rotwing_update_hover_motor_effectiveness(), eff_scheduling_rotwing_update_MMOI(), eff_scheduling_rotwing_update_pusher_effectiveness(), eff_scheduling_rotwing_update_rudder_effectiveness(), and stabilization_indi_set_wls_settings().
| float eff_sched_pusher_time = 0.002 |
Definition at line 172 of file eff_scheduling_rotwing.c.
Referenced by stabilization_indi_set_wls_settings().
| struct rotwing_eff_sched_var_t eff_sched_var |
Definition at line 177 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_init(), eff_scheduling_rotwing_schedule_liftd(), eff_scheduling_rotwing_update_aileron_effectiveness(), eff_scheduling_rotwing_update_airspeed(), eff_scheduling_rotwing_update_cmd(), eff_scheduling_rotwing_update_elevator_effectiveness(), eff_scheduling_rotwing_update_flaperon_effectiveness(), eff_scheduling_rotwing_update_hover_motor_effectiveness(), eff_scheduling_rotwing_update_MMOI(), eff_scheduling_rotwing_update_pusher_effectiveness(), eff_scheduling_rotwing_update_rudder_effectiveness(), eff_scheduling_rotwing_update_wing_angle(), wing_position_cb(), and wing_position_cb().
| float eff_scheduling_rotwing_lift_d = 0.0f |
Definition at line 429 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_schedule_liftd(), guidance_indi_get_liftd(), and guidance_indi_get_liftd().
| float roll_eff_slider = 12.f |
Definition at line 173 of file eff_scheduling_rotwing.c.
| int32_t rw_flap_offset = 0 |
Definition at line 151 of file eff_scheduling_rotwing.c.
Referenced by stabilization_indi_set_wls_settings().
|
static |
Definition at line 202 of file eff_scheduling_rotwing.c.
Referenced by eff_scheduling_rotwing_init().
|
static |
Definition at line 175 of file eff_scheduling_rotwing.c.
Referenced by guidance_indi_hybrid_set_wls_settings().