#include "std.h"
#include "generated/airframe.h"
Go to the source code of this file.
- Author
- Tomaso De Ponti T.M.L.nosp@m..DeP.nosp@m.onti@.nosp@m.tude.nosp@m.lft.n.nosp@m.l The control effectiveness scheduler for the rotating wing drone type
Definition in file eff_scheduling_rotwing_V2.h.
◆ rotwing_eff_sched_param_t
| struct rotwing_eff_sched_param_t |
Definition at line 37 of file eff_scheduling_rotwing.h.
| Data Fields |
|
float |
CT_hover |
|
|
float |
CT_pusher |
|
|
float |
d_rudder_d_pprz |
|
|
float |
DMdpprz_hover_pitch[2] |
|
|
float |
DMdpprz_hover_roll[2] |
|
|
float |
hover_max_rpm_squared |
|
|
float |
hover_roll_pitch_coef[2] |
|
|
float |
hover_roll_roll_coef[2] |
|
|
float |
hover_rpm_lim_coef[2] |
|
|
float |
Ixx_body |
|
|
float |
Ixx_wing |
|
|
float |
Iyy_body |
|
|
float |
Iyy_wing |
|
|
float |
Izz |
|
|
float |
k_aileron |
|
|
float |
k_elevator[3] |
|
|
float |
k_elevator_deflection[2] |
|
|
float |
k_flaperon |
|
|
float |
k_lift_fuselage |
|
|
float |
k_lift_tail |
|
|
float |
k_lift_wing[2] |
|
|
float |
k_pusher[2] |
|
|
float |
k_rpm_pprz_pusher[3] |
|
|
float |
k_rudder[3] |
|
|
float |
m |
|
|
float |
pusher_max_rpm_squared |
|
|
float |
pusher_rpm_lim_coef[2] |
|
◆ rotwing_eff_sched_var_t
| struct rotwing_eff_sched_var_t |
Definition at line 68 of file eff_scheduling_plusquad.h.
| Data Fields |
|
float |
airspeed |
|
|
float |
airspeed2 |
|
|
float |
cmd_elevator |
|
|
float |
cmd_pusher |
|
|
float |
cmd_pusher_scaled |
|
|
float |
cmd_T_mean_scaled |
|
|
float |
cosr |
|
|
float |
cosr2 |
|
|
float |
cosr3 |
|
|
float |
Ixx |
|
|
float |
Iyy |
|
|
float |
pitch_motor_dMdpprz |
|
|
float |
roll_motor_dMdpprz |
|
|
float |
sinr |
|
|
float |
sinr2 |
|
|
float |
sinr3 |
|
|
float |
wing_rotation_deg |
|
|
float |
wing_rotation_rad |
|
Definition at line 81 of file eff_scheduling_plusquad.h.
| Data Fields |
|
float |
b_xx |
|
|
float |
b_yy |
|
|
float |
w_xx |
|
|
float |
w_yy |
|
|
float |
xx |
|
|
float |
yy |
|
|
float |
zz |
|
◆ F_M_Body
◆ wing_model
| Data Fields |
|
float |
dLdtheta |
|
|
float |
k0 |
|
|
float |
k1 |
|
|
float |
k2 |
|
|
float |
L |
|
◆ RW_attitude
Definition at line 97 of file eff_scheduling_plusquad.h.
| Data Fields |
|
float |
cphi |
|
|
float |
cpsi |
|
|
float |
ctheta |
|
|
float |
phi |
|
|
float |
psi |
|
|
float |
sphi |
|
|
float |
spsi |
|
|
float |
stheta |
|
|
float |
theta |
|
◆ RW_skew
| Data Fields |
|
float |
cosr |
|
|
float |
cosr2 |
|
|
float |
cosr3 |
|
|
float |
cosr4 |
|
|
float |
deg |
|
|
float |
rad |
|
|
float |
sinr |
|
|
float |
sinr2 |
|
|
float |
sinr3 |
|
|
float |
sinr4 |
|
◆ RW_Model
◆ COMMANDS_NB_VIRTUAL
| #define COMMANDS_NB_VIRTUAL 0 |
◆ EFF_MAT_COLS_NB
◆ EFF_MAT_ROWS_NB
| #define EFF_MAT_ROWS_NB 6 |
◆ ELE_MAX_AS
◆ ELE_MIN_AS
◆ RW_aD
◆ RW_aE
◆ RW_aN
◆ RW_ap
◆ RW_aq
◆ RW_ar
◆ RW_aX
◆ RW_aY
◆ RW_aZ
◆ RW_G_SCALE
| #define RW_G_SCALE 1000.0f |
◆ ZERO_ELE_PPRZ
| #define ZERO_ELE_PPRZ 8000 |
◆ eff_scheduling_rotwing_init()
| void eff_scheduling_rotwing_init |
( |
void | | ) |
|
|
extern |
Definition at line 102 of file eff_scheduling_plusquad.c.
References eff_sched_p, eff_sched_var, eff_scheduling_rotwing_init(), init_butterworth_2_low_pass(), init_RW_Model(), oneloop_nB_filt_cutoff, phi_filt, psi_filt, skew_filt, theta_filt, update_attitude(), wing_position_cb(), wing_position_ev, and WING_ROTATION_CAN_ROTWING_ID.
Referenced by eff_scheduling_rotwing_init().
◆ eff_scheduling_rotwing_periodic()
| void eff_scheduling_rotwing_periodic |
( |
void | | ) |
|
|
extern |
Definition at line 236 of file eff_scheduling_plusquad.c.
References calc_G1_G2_RW(), 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(), ele_pref_sched(), sum_EFF_MAT_RW(), and update_attitude().
◆ airspeed_fake
◆ airspeed_fake_on
◆ EFF_MAT_RW
◆ eff_sched_pusher_time
| float eff_sched_pusher_time |
|
extern |
◆ ele_eff
◆ ele_min
◆ G1_RW
◆ G2_on
◆ G2_RW
◆ manual_pitch
◆ manual_roll
◆ manual_yaw
◆ roll_eff
◆ rotation_angle_setpoint_deg
| float rotation_angle_setpoint_deg |
|
extern |
◆ rotation_cmd
◆ RW
Definition at line 86 of file eff_scheduling_plusquad.c.
Referenced by calc_all_thrust_curve(), calc_G1_G2_RW(), eff_scheduling_rotwing_update_airspeed(), eff_scheduling_rotwing_update_wing_angle(), ele_pref_sched(), init_all_thrust_curve(), init_RW_Model(), oneloop_andi_run(), oneloop_axis_effectiveness_calc(), oneloop_nB_calc_nB_states(), oneloop_nB_RM(), oneloop_nB_state_compensation(), set_WLS_settings(), sum_EFF_MAT_RW(), and update_attitude().
◆ temp_mQ_k
◆ thrust_curve
◆ yaw_eff