-
Notifications
You must be signed in to change notification settings - Fork 20.2k
Copter/Sub: CIRCLE_RADIUS replaced by CIRCLE_RADIUS_M #31990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copter/Sub: CIRCLE_RADIUS replaced by CIRCLE_RADIUS_M #31990
Conversation
0d46d99 to
52713c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
52713c3 to
3e7e96e
Compare
|
I've tested this for Copter and Sub and have added a fix to Sub to allow it to detect changes to the CIRCLE_RADIUS_M parameter. This issue exists in master as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
f3ff835 to
c05fb3f
Compare
peterbarker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a follow-up to #31970 and #31978 and addresses another part of issue #31562
This renames and rescales CIRCLE_RADIUS (in cm) to CIRCLE_RADIUS_M (in meters).
As a bit of a drive-by cleanup I've also moved some definitions from the AC_Circle.h file to the AC_Circle.cpp file to reduce their scope.
This has been tested in SITL to confirm the behaviour is as expected and also that the parameter conversion works correctly for both Copter and Sub.