Skip to content

Commit

Permalink
Copter: implement auto-takeoff fence options
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Jan 19, 2024
1 parent 1bcfb55 commit a7ebd25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduCopter/takeoff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ void _AutoTakeoff::run()
if (complete) {
const Vector3p& _complete_pos = copter.pos_control->get_pos_target_cm();
complete_pos = Vector3p{_complete_pos.x, _complete_pos.y, pos_z};
#if AP_FENCE_ENABLED
copter.fence.auto_enable_fence_after_takeoff();
#endif
}
}

Expand Down

0 comments on commit a7ebd25

Please sign in to comment.