Browse Source

AC_AttitudeControl: updated example for new GPS API

master
Andrew Tridgell 11 years ago
parent
commit
3b8c6e629d
  1. 5
      libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde

5
libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde

@ -55,15 +55,14 @@ AP_Baro_BMP085 baro; @@ -55,15 +55,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 inertial_nav(ahrs, baro, gps, gps_glitch);
AP_InertialNav inertial_nav(ahrs, baro, gps_glitch);
// fake PIDs
AC_P p_angle_roll, p_angle_pitch, p_angle_yaw;

Loading…
Cancel
Save