Skip to content
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

Move REQUIRE_POSITION_FOR_ARMING bit to AP_arming #29076

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

... also rename it to REQUIRE_LOCATION_FROM_ARMING to be more in-line with ArduPilot's distinction between "position" (local position) and "location" (absolute lat/lng)

while Copter is the only user at the moment, will be useful on Rover shortly
while Copter is the only user at the moment, will be useful on Rover shortly
while Copter is the only user at the moment, will be useful on Rover shortly
@peterbarker peterbarker changed the title Move REQUIRE_POSITION_FROM_ARMING bit to AP_arming Move REQUIRE_POSITION_FOR_ARMING bit to AP_arming Jan 15, 2025
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Jan 15, 2025
@@ -146,6 +146,7 @@ const AP_Param::GroupInfo AP_Arming::var_info[] = {
// @DisplayName: Arming options
// @Description: Options that can be applied to change arming behaviour
// @Bitmask: 0:Disable prearm display,1:Do not send status text on state change
// @Bitmask{Copter}: 0:Disable prearm display,1:Do not send status text on state change,2:Require position for arming
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// @Bitmask{Copter}: 0:Disable prearm display,1:Do not send status text on state change,2:Require position for arming
// @Bitmask{Copter}: 0:Disable prearm display,1:Do not send status text on state change,2:Require location for arming

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add it to plane also?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plane already requires position for arming, all the time.

That's actually why we put this into Copter's flight options in the first place - we're going to have an awkward time when Plane no longer requires position for arming....

But we want this bit for Rover, so @rmackay9 asked for it to be moved (#29073)

Copy link
Contributor

@rmackay9 rmackay9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I'm not sure we really needed to replace "position" with "location" but it's OK in either case.

More importantly I guess the reason we put it in FLIGHT_OPTIONS in the first place was because once someone sets this bit they will never get the default changes to the ARMING_OPTIONS parameter? that hardly seems like a good enough reason so I suspect I'm missing something

@peterbarker
Copy link
Contributor Author

Thanks for this. I'm not sure we really needed to replace "position" with "location" but it's OK in either case.

More importantly I guess the reason we put it in FLIGHT_OPTIONS in the first place was because once someone sets this bit they will never get the default changes to the ARMING_OPTIONS parameter? that hardly seems like a good enough reason so I suspect I'm missing something

I should have taken better notes :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants