get_acro_yaw added

This commit is contained in:
Jason Short 2012-02-10 22:22:19 -08:00
parent 927fc25421
commit 4f44ccc182
1 changed files with 8 additions and 0 deletions

View File

@ -96,6 +96,14 @@ get_acro_pitch(int32_t target_rate)
return get_rate_pitch(target_rate);
}
static int
get_acro_yaw(int32_t target_rate)
{
target_rate = g.pi_stabilize_yaw.get_p(target_rate);
target_rate = constrain(target_rate, -15000, 15000);
return get_rate_yaw(target_rate);
}
static int
get_rate_roll(int32_t target_rate)
{