#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 31 of file eff_scheduling_rotwing.h.
Data Fields |
float |
d_rudder_d_pprz |
|
float |
DMdpprz_hover_pitch[2] |
|
float |
DMdpprz_hover_roll[2] |
|
float |
hover_roll_pitch_coef[2] |
|
float |
hover_roll_roll_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 |
|
◆ rotwing_eff_sched_var_t
struct rotwing_eff_sched_var_t |
Definition at line 56 of file eff_scheduling_rotwing.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 |
|
Data Fields |
float |
b_xx |
|
float |
b_yy |
|
float |
w_xx |
|
float |
w_yy |
|
float |
xx |
|
float |
yy |
|
float |
zz |
|
◆ F_M_Body
Data Fields |
float |
dFdu |
|
float |
dMdu |
|
float |
dMdud |
|
float |
l |
|
◆ wing_model
Data Fields |
float |
dLdtheta |
|
float |
k0 |
|
float |
k1 |
|
float |
k2 |
|
float |
L |
|
◆ RW_attitude
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 |
deg |
|
float |
rad |
|
float |
sinr |
|
float |
sinr2 |
|
float |
sinr3 |
|
◆ RW_Model
◆ EFF_MAT_COLS_NB
#define EFF_MAT_COLS_NB (COMMANDS_NB_REAL + COMMANDS_NB_VIRTUAL) |
◆ 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 |
| ) |
|
Definition at line 219 of file eff_scheduling_rotwing.c.
References rotwing_eff_sched_var_t::airspeed, rotwing_eff_sched_var_t::airspeed2, rotwing_eff_sched_var_t::cmd_elevator, rotwing_eff_sched_var_t::cmd_pusher, rotwing_eff_sched_var_t::cmd_pusher_scaled, rotwing_eff_sched_var_t::cmd_T_mean_scaled, rotwing_eff_sched_var_t::cosr, rotwing_eff_sched_var_t::cosr2, rotwing_eff_sched_param_t::DMdpprz_hover_pitch, rotwing_eff_sched_param_t::DMdpprz_hover_roll, eff_sched_p, eff_sched_var, init_butterworth_2_low_pass(), init_RW_Model(), rotwing_eff_sched_var_t::Ixx, rotwing_eff_sched_param_t::Ixx_body, rotwing_eff_sched_param_t::Ixx_wing, rotwing_eff_sched_var_t::Iyy, rotwing_eff_sched_param_t::Iyy_body, rotwing_eff_sched_param_t::Iyy_wing, rotwing_eff_sched_var_t::pitch_motor_dMdpprz, rotwing_eff_sched_var_t::roll_motor_dMdpprz, rotwing_eff_sched_var_t::sinr, rotwing_eff_sched_var_t::sinr2, rotwing_eff_sched_var_t::sinr3, skew_filt, update_attitude(), wing_position_cb(), wing_position_ev, WING_ROTATION_CAN_ROTWING_ID, rotwing_eff_sched_var_t::wing_rotation_deg, and rotwing_eff_sched_var_t::wing_rotation_rad.
◆ eff_scheduling_rotwing_periodic()
void eff_scheduling_rotwing_periodic |
( |
void |
| ) |
|
Definition at line 249 of file eff_scheduling_rotwing.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_RW
◆ roll_eff
◆ rotation_angle_setpoint_deg
float rotation_angle_setpoint_deg |
|
extern |
◆ rotation_cmd
◆ RW
◆ yaw_eff