mirror of https://github.com/ArduPilot/ardupilot
TradHeli: integrate AttControl method name changes
This commit is contained in:
parent
a6ad51b38f
commit
6880a6db80
|
@ -34,7 +34,7 @@ static void heli_acro_run()
|
|||
pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in);
|
||||
|
||||
// run attitude controller
|
||||
attitude_control.ratebf_rpy(target_roll, target_pitch, target_yaw);
|
||||
attitude_control.rate_bf_roll_pitch_yaw(target_roll, target_pitch, target_yaw);
|
||||
|
||||
// output pilot's throttle without angle boost
|
||||
attitude_control.set_throttle_out(pilot_throttle_scaled, false);
|
||||
|
|
|
@ -37,7 +37,7 @@ static void heli_stabilize_run()
|
|||
pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in);
|
||||
|
||||
// call attitude controller
|
||||
attitude_control.angleef_rp_rateef_y(target_roll, target_pitch, target_yaw_rate);
|
||||
attitude_control.angle_ef_roll_pitch_rate_ef_yaw(target_roll, target_pitch, target_yaw_rate);
|
||||
|
||||
// output pilot's throttle - note that TradHeli does not used angle-boost
|
||||
attitude_control.set_throttle_out(pilot_throttle_scaled, false);
|
||||
|
|
Loading…
Reference in New Issue