diff --git a/ArduCopter/position_vector.pde b/ArduCopter/position_vector.pde index f03b88e9c6..0c3d030e9a 100644 --- a/ArduCopter/position_vector.pde +++ b/ArduCopter/position_vector.pde @@ -52,7 +52,7 @@ float pv_alt_above_home(float alt_above_origin_cm) // pv_get_bearing_cd - return bearing in centi-degrees between two positions float pv_get_bearing_cd(const Vector3f &origin, const Vector3f &destination) { - float bearing = fast_atan2(destination.y-origin.y, destination.x-origin.x) * DEGX100; + float bearing = atan2f(destination.y-origin.y, destination.x-origin.x) * DEGX100; if (bearing < 0) { bearing += 36000; }