AC_Sprayer: remove example sketch

This only tested compiling anyway
This commit is contained in:
Randy Mackay 2015-03-12 20:10:24 +09:00
parent 4754ecc9e2
commit ce2d0a14a6
4 changed files with 0 additions and 85 deletions

View File

@ -1,84 +0,0 @@
/*
* Example of AC_Sprayer 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_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_Airspeed.h>
#include <AP_Vehicle.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 <DataFlash.h>
#include <GCS_MAVLink.h>
#include <AP_Mission.h>
#include <StorageManager.h>
#include <AP_Terrain.h>
#include <RC_Channel.h>
#include <AC_Sprayer.h> // Crop Sprayer library
#include <AP_Notify.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 inertial_nav(ahrs, baro, gps_glitch, baro_glitch);
// Sprayer
AC_Sprayer sprayer(&inertial_nav);
void setup()
{
// display welcome message
hal.console->println("AC_Sprayer library test");
// enable sprayer
sprayer.enable(true);
// set-up pump rate
sprayer.set_pump_rate(1.0);
}
void loop()
{
// repeated call sprayer at different velocities
sprayer.update();
}
AP_HAL_MAIN();

View File

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