Skip to content

Commit

Permalink
Copter: Move to the processing section to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 16, 2024
1 parent e83afcf commit dccda14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ArduCopter/mode_circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ bool ModeCircle::init(bool ignore_checks)
copter.circle_nav->init();

#if HAL_MOUNT_ENABLED
AP_Mount *s = AP_Mount::get_singleton();

// Check if the CIRCLE_OPTIONS parameter have roi_at_center
if (copter.circle_nav->roi_at_center()) {
const Vector3p &pos { copter.circle_nav->get_center() };
Expand All @@ -33,6 +31,7 @@ bool ModeCircle::init(bool ignore_checks)
}
// point at the ground:
circle_center.set_alt_cm(0, Location::AltFrame::ABOVE_TERRAIN);
AP_Mount *s = AP_Mount::get_singleton();
s->set_roi_target(circle_center);
}
#endif
Expand Down

0 comments on commit dccda14

Please sign in to comment.