AC_Sprayer: fix example sketch

This commit is contained in:
Randy Mackay 2014-05-08 16:24:19 +09:00
parent 9ab9eaec25
commit 9b6a4e0fc7

View File

@ -49,15 +49,14 @@ AP_Baro_BMP085 baro;
#endif #endif
// GPS declaration // GPS declaration
GPS *gps; AP_GPS gps;
AP_GPS_Auto auto_gps(&gps);
GPS_Glitch gps_glitch(gps); GPS_Glitch gps_glitch(gps);
AP_Compass_HMC5843 compass; AP_Compass_HMC5843 compass;
AP_AHRS_DCM ahrs(ins, baro, gps); AP_AHRS_DCM ahrs(ins, baro, gps);
// Inertial Nav declaration // Inertial Nav declaration
AP_InertialNav inertial_nav(ahrs, baro, gps, gps_glitch); AP_InertialNav inertial_nav(ahrs, baro, gps_glitch);
// Sprayer // Sprayer
AC_Sprayer sprayer(&inertial_nav); AC_Sprayer sprayer(&inertial_nav);