TradHeli: integrate AttControl method name changes

This commit is contained in:
Randy Mackay 2014-02-14 11:53:21 +09:00 committed by Andrew Tridgell
parent a6ad51b38f
commit 6880a6db80
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ static void heli_acro_run()
pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in); pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in);
// run attitude controller // 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 // output pilot's throttle without angle boost
attitude_control.set_throttle_out(pilot_throttle_scaled, false); attitude_control.set_throttle_out(pilot_throttle_scaled, false);

View File

@ -37,7 +37,7 @@ static void heli_stabilize_run()
pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in); pilot_throttle_scaled = get_pilot_desired_throttle(g.rc_3.control_in);
// call attitude controller // 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 // output pilot's throttle - note that TradHeli does not used angle-boost
attitude_control.set_throttle_out(pilot_throttle_scaled, false); attitude_control.set_throttle_out(pilot_throttle_scaled, false);