Skip to content
Snippets Groups Projects
Commit 40b7000c authored by Olivier-ADLER's avatar Olivier-ADLER Committed by Randy Mackay
Browse files

Copter: SuperSimple mode bug

SuperSimple bearing was updated without checking for GPS 3D Fix availability.
parent 1cbedc06
No related branches found
Tags 0.2
No related merge requests found
...@@ -68,7 +68,7 @@ static void calc_distance_and_bearing() ...@@ -68,7 +68,7 @@ static void calc_distance_and_bearing()
} }
// calculate home distance and bearing // calculate home distance and bearing
if( ap.home_is_set ) { if( ap.home_is_set && g_gps->status() == GPS::GPS_OK_FIX_3D ) {
home_distance = pythagorous2(curr.x, curr.y); home_distance = pythagorous2(curr.x, curr.y);
home_bearing = pv_get_bearing_cd(curr,Vector3f(0,0,0)); home_bearing = pv_get_bearing_cd(curr,Vector3f(0,0,0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment