AC_WPNav: fix example sketch

This commit is contained in:
Randy Mackay 2014-05-08 16:24:32 +09:00
parent 9b6a4e0fc7
commit badc127c34
1 changed files with 2 additions and 3 deletions

View File

@ -53,15 +53,14 @@ AP_Baro_BMP085 baro;
#endif
// GPS declaration
GPS *gps;
AP_GPS_Auto auto_gps(&gps);
AP_GPS gps;
GPS_Glitch gps_glitch(gps);
AP_Compass_HMC5843 compass;
AP_AHRS_DCM ahrs(ins, baro, gps);
// Inertial Nav declaration
AP_InertialNav inertialnav(ahrs, baro, gps, gps_glitch);
AP_InertialNav inertialnav(ahrs, baro, gps_glitch);
void setup()
{