Rover: add AP_GRIPPER_ENABLED

This commit is contained in:
Peter Barker 2022-09-20 17:37:48 +10:00 committed by Andrew Tridgell
parent 997f8d3d3a
commit 1e4175cc8e
5 changed files with 4 additions and 11 deletions

View File

@ -583,7 +583,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @User: Standard
AP_GROUPINFO("MIS_DONE_BEHAVE", 38, ParametersG2, mis_done_behave, 0),
#if GRIPPER_ENABLED == ENABLED
#if AP_GRIPPER_ENABLED
// @Group: GRIP_
// @Path: ../libraries/AP_Gripper/AP_Gripper.cpp
AP_SUBGROUPINFO(gripper, "GRIP_", 39, ParametersG2, AP_Gripper),

View File

@ -370,7 +370,7 @@ public:
AC_Sprayer sprayer;
#endif
#if GRIPPER_ENABLED
#if AP_GRIPPER_ENABLED
AP_Gripper gripper;
#endif

View File

@ -92,7 +92,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
SCHED_TASK_CLASS(RC_Channels, (RC_Channels*)&rover.g2.rc_channels, read_aux_all, 10, 200, 60),
SCHED_TASK_CLASS(AP_BattMonitor, &rover.battery, read, 10, 300, 63),
SCHED_TASK_CLASS(AP_ServoRelayEvents, &rover.ServoRelayEvents, update_events, 50, 200, 66),
#if GRIPPER_ENABLED == ENABLED
#if AP_GRIPPER_ENABLED
SCHED_TASK_CLASS(AP_Gripper, &rover.g2.gripper, update, 10, 75, 69),
#if PRECISION_LANDING == ENABLED
SCHED_TASK(update_precland, 400, 50, 70),

View File

@ -31,13 +31,6 @@
#error XXX
#endif
//////////////////////////////////////////////////////////////////////////////
// GRIPPER control
//
#ifndef GRIPPER_ENABLED
# define GRIPPER_ENABLED ENABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// RALLY POINTS
//

View File

@ -25,7 +25,7 @@ void Rover::init_ardupilot()
#endif
// init gripper
#if GRIPPER_ENABLED == ENABLED
#if AP_GRIPPER_ENABLED
g2.gripper.init();
#endif