ArduCopter: Cleanup - removes autoenabling of fence with AC_Fence parameter

This commit is contained in:
James O'Shannessy 2021-03-03 22:54:10 +11:00 committed by Peter Barker
parent 8ef68c8fb0
commit d055d7a581
2 changed files with 0 additions and 10 deletions

View File

@ -1522,11 +1522,6 @@ bool ModeAuto::verify_takeoff()
if (reached_wp_dest) {
// retract the landing gear
copter.landinggear.retract_after_takeoff();
#if AC_FENCE == ENABLED
// auto-enable the fence after takeoff
copter.fence.auto_enable_fence_after_takeoff();
#endif
}
return reached_wp_dest;

View File

@ -398,11 +398,6 @@ void ModeGuided::takeoff_run()
// optionally retract landing gear
copter.landinggear.retract_after_takeoff();
#if AC_FENCE == ENABLED
// takeoff complete, enable fence
copter.fence.auto_enable_fence_after_takeoff();
#endif
// switch to position control mode but maintain current target
const Vector3f target = wp_nav->get_wp_destination();
set_destination(target, false, 0, false, 0, false, wp_nav->origin_and_destination_are_terrain_alt());