From badc127c3498e77b8e322ea3d134c385150138db Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 8 May 2014 16:24:32 +0900 Subject: [PATCH] AC_WPNav: fix example sketch --- libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde b/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde index e4f3985309..d21bf3d579 100644 --- a/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde +++ b/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde @@ -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() {