Browse Source

AP_Vehicle: change AC_FENCE to AP_FENCE_ENABLED

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
a9310c3d18
  1. 6
      libraries/AP_Vehicle/AP_Vehicle.cpp
  2. 2
      libraries/AP_Vehicle/AP_Vehicle.h

6
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -93,7 +93,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = { @@ -93,7 +93,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
AP_SUBGROUPINFO(ais, "AIS_", 13, AP_Vehicle, AP_AIS),
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
// @Group: FENCE_
// @Path: ../AC_Fence/AC_Fence.cpp
AP_SUBGROUPINFO(fence, "FENCE_", 14, AP_Vehicle, AC_Fence),
@ -238,7 +238,7 @@ void AP_Vehicle::setup() @@ -238,7 +238,7 @@ void AP_Vehicle::setup()
ais.init();
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
fence.init();
#endif
@ -335,7 +335,7 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = { @@ -335,7 +335,7 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = {
#if HAL_INS_ACCELCAL_ENABLED
SCHED_TASK(accel_cal_update, 10, 100, 245),
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
SCHED_TASK_CLASS(AC_Fence, &vehicle.fence, update, 10, 100, 248),
#endif
#if AP_AIS_ENABLED

2
libraries/AP_Vehicle/AP_Vehicle.h

@ -398,7 +398,7 @@ protected: @@ -398,7 +398,7 @@ protected:
AP_AIS ais;
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
AC_Fence fence;
#endif

Loading…
Cancel
Save