AP_AHRS: fix use of undefined macro

../../libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp:63:5: warning: "WITH_GPS" is not defined [-Wundef]
 #if WITH_GPS
     ^

g_gps was not even declared so remove it.
This commit is contained in:
Lucas De Marchi 2016-02-18 02:25:39 -02:00
parent 7d24b4d1ca
commit 0ccd2de12b
1 changed files with 0 additions and 3 deletions

View File

@ -60,9 +60,6 @@ void loop(void)
heading = compass.calculate_heading(ahrs.get_rotation_body_to_ned());
// read compass at 10Hz
last_compass = now;
#if WITH_GPS
g_gps->update();
#endif
}
ahrs.update();