mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AC_Sprayer: fix example sketch
This commit is contained in:
parent
4484a4232a
commit
889ee1bfef
@ -23,7 +23,7 @@
|
|||||||
#include <AP_Airspeed.h>
|
#include <AP_Airspeed.h>
|
||||||
#include <AP_Vehicle.h>
|
#include <AP_Vehicle.h>
|
||||||
#include <AC_PID.h> // PID library
|
#include <AC_PID.h> // PID library
|
||||||
#include <APM_PI.h> // PID library
|
#include <AC_P.h> // P library
|
||||||
#include <AP_Buffer.h> // ArduPilot general purpose FIFO buffer
|
#include <AP_Buffer.h> // ArduPilot general purpose FIFO buffer
|
||||||
#include <AP_InertialNav.h> // Inertial Navigation library
|
#include <AP_InertialNav.h> // Inertial Navigation library
|
||||||
#include <DataFlash.h>
|
#include <DataFlash.h>
|
||||||
@ -53,10 +53,10 @@ 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, 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, gps_glitch);
|
||||||
|
|
||||||
// Sprayer
|
// Sprayer
|
||||||
AC_Sprayer sprayer(&inertial_nav);
|
AC_Sprayer sprayer(&inertial_nav);
|
||||||
|
Loading…
Reference in New Issue
Block a user