mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Rover: use HAL_SPRAYER_ENABLED
This commit is contained in:
parent
32221e2207
commit
b3c44d42d7
@ -519,9 +519,11 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
||||
// @User: Standard
|
||||
AP_GROUPINFO("LOIT_TYPE", 25, ParametersG2, loit_type, 0),
|
||||
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
// @Group: SPRAYER_
|
||||
// @Path: ../libraries/AC_Sprayer/AC_Sprayer.cpp
|
||||
AP_SUBGROUPINFO(sprayer, "SPRAY_", 26, ParametersG2, AC_Sprayer),
|
||||
#endif
|
||||
|
||||
// @Group: WRC
|
||||
// @Path: ../libraries/AP_WheelEncoder/AP_WheelRateControl.cpp
|
||||
|
@ -351,8 +351,10 @@ public:
|
||||
AP_Int8 loit_type;
|
||||
AP_Float loit_radius;
|
||||
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
// Sprayer
|
||||
AC_Sprayer sprayer;
|
||||
#endif
|
||||
|
||||
#if GRIPPER_ENABLED
|
||||
AP_Gripper gripper;
|
||||
|
@ -89,7 +89,9 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
|
||||
SCHED_TASK_CLASS(ModeSmartRTL, &rover.mode_smartrtl, save_position, 3, 200),
|
||||
SCHED_TASK_CLASS(AP_Notify, &rover.notify, update, 50, 300),
|
||||
SCHED_TASK(one_second_loop, 1, 1500),
|
||||
#if HAL_SPRAYER_ENABLED
|
||||
SCHED_TASK_CLASS(AC_Sprayer, &rover.g2.sprayer, update, 3, 90),
|
||||
#endif
|
||||
SCHED_TASK_CLASS(Compass, &rover.compass, cal_update, 50, 200),
|
||||
SCHED_TASK(compass_save, 0.1, 200),
|
||||
SCHED_TASK(accel_cal_update, 10, 200),
|
||||
|
Loading…
Reference in New Issue
Block a user