mirror of https://github.com/ArduPilot/ardupilot
AC_Sprayer: create and use an AP_Sprayer_config.h
This commit is contained in:
parent
452df9022b
commit
1916490ae6
|
@ -1,7 +1,8 @@
|
|||
#include "AC_Sprayer.h"
|
||||
#include "AC_Sprayer_config.h"
|
||||
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
|
||||
#include "AC_Sprayer.h"
|
||||
#include <AP_AHRS/AP_AHRS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
**/
|
||||
#pragma once
|
||||
|
||||
#include "AC_Sprayer_config.h"
|
||||
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
|
@ -25,12 +29,6 @@
|
|||
#define AC_SPRAYER_DEFAULT_TURN_ON_DELAY 100 ///< delay between when we reach the minimum speed and we begin spraying. This reduces the likelihood of constantly turning on/off the pump
|
||||
#define AC_SPRAYER_DEFAULT_SHUT_OFF_DELAY 1000 ///< shut-off delay in milli seconds. This reduces the likelihood of constantly turning on/off the pump
|
||||
|
||||
#ifndef HAL_SPRAYER_ENABLED
|
||||
#define HAL_SPRAYER_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
|
||||
/// @class AC_Sprayer
|
||||
/// @brief Object managing a crop sprayer comprised of a spinner and a pump both controlled by pwm
|
||||
class AC_Sprayer {
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef HAL_SPRAYER_ENABLED
|
||||
#define HAL_SPRAYER_ENABLED 1
|
||||
#endif
|
Loading…
Reference in New Issue