Browse Source

Copter: Compiler warnings: nuke fast_atan2()

per Randy's suggestion, fast_atan2() is no longer necessary over atan2() because only copter uses it and copter is no longer supported on future builds of APM

ccd578664f (commitcomment-11025083)
mission-4.1.18
Tom Pittenger 10 years ago committed by Andrew Tridgell
parent
commit
5704a5a2a7
  1. 2
      ArduCopter/position_vector.pde

2
ArduCopter/position_vector.pde

@ -52,7 +52,7 @@ float pv_alt_above_home(float alt_above_origin_cm) @@ -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;
}

Loading…
Cancel
Save