mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Toy Mode Yaw Rate fix
This commit is contained in:
parent
cf6d73ec88
commit
226bba48a6
@ -713,11 +713,11 @@ void roll_pitch_toy()
|
||||
//g.rc_4.servo_out = get_stabilize_yaw(nav_yaw);
|
||||
|
||||
if(g.rc_1.control_in != 0){
|
||||
g.rc_4.servo_out = get_acro_yaw(yaw_rate);
|
||||
g.rc_4.servo_out = get_rate_yaw(yaw_rate);
|
||||
yaw_stopped = false;
|
||||
yaw_timer = 150;
|
||||
}else if (!yaw_stopped){
|
||||
g.rc_4.servo_out = get_acro_yaw(0);
|
||||
g.rc_4.servo_out = get_rate_yaw(0);
|
||||
yaw_timer--;
|
||||
if(yaw_timer == 0){
|
||||
yaw_stopped = true;
|
||||
|
Loading…
Reference in New Issue
Block a user