mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
Copter: minor format fix
This commit is contained in:
parent
f5fd89833d
commit
da629ce976
@ -67,8 +67,7 @@ static float get_look_ahead_yaw()
|
||||
const Vector3f& vel = inertial_nav.get_velocity();
|
||||
float speed = pythagorous2(vel.x,vel.y);
|
||||
// Commanded Yaw to automatically look ahead.
|
||||
if (position_ok() && speed > YAW_LOOK_AHEAD_MIN_SPEED) {
|
||||
|
||||
if (position_ok() && (speed > YAW_LOOK_AHEAD_MIN_SPEED)) {
|
||||
yaw_look_ahead_bearing = degrees(atan2f(vel.y,vel.x))*100.0f;
|
||||
}
|
||||
return yaw_look_ahead_bearing;
|
||||
|
Loading…
Reference in New Issue
Block a user