AC_WPNav: remove example sketch

this only tested compiling anyway
This commit is contained in:
Randy Mackay 2015-03-12 20:09:57 +09:00
parent ce2d0a14a6
commit c88ff00f5f
4 changed files with 0 additions and 80 deletions

View File

@ -1,79 +0,0 @@
/*
* Example of AC_WPNav library .
* DIYDrones.com
*/
#include <AP_Common.h>
#include <AP_Progmem.h>
#include <AP_Math.h> // ArduPilot Mega Vector/Matrix math Library
#include <AP_Param.h>
#include <AP_HAL.h>
#include <AP_HAL_AVR.h>
#include <AP_Notify.h> // Notify library
#include <AP_GPS.h> // ArduPilot GPS library
#include <AP_GPS_Glitch.h> // GPS glitch protection library
#include <AP_ADC.h> // ArduPilot Mega Analog to Digital Converter Library
#include <AP_ADC_AnalogSource.h>
#include <AP_Baro.h> // ArduPilot Mega Barometer Library
#include <AP_Baro_Glitch.h> // Baro glitch protection library
#include <Filter.h>
#include <AP_Compass.h> // ArduPilot Mega Magnetometer Library
#include <AP_Declination.h>
#include <AP_InertialSensor.h> // ArduPilot Mega Inertial Sensor (accel & gyro) Library
#include <AP_AHRS.h>
#include <AP_Vehicle.h> // needed for AHRS build
#include <AP_Airspeed.h>
#include <AC_PID.h> // PID library
#include <AC_P.h> // P library
#include <AP_Buffer.h> // ArduPilot general purpose FIFO buffer
#include <AP_InertialNav.h> // Inertial Navigation library
#include <AC_WPNav.h> // Waypoint Navigation library
#include <AC_PosControl.h> // Position Control library
#include <AC_AttitudeControl.h> // Attitude Control library
#include <AP_Curve.h> // curve library (used by motors)
#include <RC_Channel.h> // RC Channel library (used by motors)
#include <AP_Motors.h> // Motor library
#include <DataFlash.h>
#include <GCS_MAVLink.h>
#include <AP_Mission.h>
#include <StorageManager.h>
#include <AP_Terrain.h>
#include <AP_Nav_Common.h>
#include <AP_BattMonitor.h>
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
// INS and Baro declaration
AP_InertialSensor ins;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
AP_ADC_ADS7844 adc;
#endif
AP_Baro baro;
// GPS declaration
AP_GPS gps;
GPS_Glitch gps_glitch(gps);
Baro_Glitch baro_glitch(baro);
AP_Compass_HMC5843 compass;
AP_AHRS_DCM ahrs(ins, baro, gps);
// Inertial Nav declaration
AP_InertialNav inertialnav(ahrs, baro, gps_glitch, baro_glitch);
void setup()
{
hal.console->println("WPNav library test");
}
void loop()
{
// print message to user
hal.console->printf_P(PSTR("this example tests compilation only"));
hal.scheduler->delay(5000);
}
AP_HAL_MAIN();

View File

@ -1 +0,0 @@
include ../../../../mk/apm.mk