diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp index 7001802bcb..a0ad07a6d7 100644 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -69,8 +69,10 @@ void Copter::init_ardupilot() g2.gripper.init(); #endif +#if AC_FENCE == ENABLED fence.init(); - +#endif + // init winch and wheel encoder winch_init();