Copter: fixed comment on get_pilot_desired_yaw_rate

This commit is contained in:
Andrew Tridgell 2015-07-27 12:03:48 +10:00
parent c86ff1ac25
commit 149b6bffba

View File

@ -36,9 +36,9 @@ void Copter::get_pilot_desired_lean_angles(float roll_in, float pitch_in, float
pitch_out = pitch_in; pitch_out = pitch_in;
} }
// get_pilot_desired_heading - transform pilot's yaw input into a desired heading // get_pilot_desired_heading - transform pilot's yaw input into a
// returns desired angle in centi-degrees // desired yaw rate
// To-Do: return heading as a float? // returns desired yaw rate in centi-degrees per second
float Copter::get_pilot_desired_yaw_rate(int16_t stick_angle) float Copter::get_pilot_desired_yaw_rate(int16_t stick_angle)
{ {
// convert pilot input to the desired yaw rate // convert pilot input to the desired yaw rate