-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
add parachute-unavailable code #26128
base: master
Are you sure you want to change the base?
add parachute-unavailable code #26128
Conversation
peterbarker
commented
Feb 2, 2024
fcbdbab
to
8d82a59
Compare
524c01b
to
2803d39
Compare
|
2803d39
to
a793925
Compare
Unfortunately because the enable function directly sets the enable parameter its perfectly possible to have the parameter disabled at boot. Then enable via RC or mission command at some later point.
The 3 pos switch actually enables and then immediately deploys. ardupilot/ArduCopter/RC_Channel.cpp Lines 341 to 342 in 1e4f597
I think the only way to check is to look for the outputs being setup. I'm not really sure how you can do that.... on master its quite easy because you can look for the parachute servo or relay output functions. However, the relay param conversion likely won't have been done in this case (and won't be done if the chute lib is missing) so you would probably have to also look at the old pin param too.... |
At some point we have bite the bullet and remove this. I'm pretty sure the number of people that this might affect is vanishingly small if not 0. Eventually you just have to print a big fat warning and move on. |
Well, the point is we can't tell, so we can't print the warning. It should be in the release notes of course. I agree the number of users this affects is probbibly very small, but those that it does affect will have a very bad day. Note that this odd enable stuff also affects the param conversion to the new relay functions, #26132 so we might have already broken it for all those people already.... |
We should probably check that parameter conversion code :-) We could add an additional check that the user doesn't have an RC switch configured for it. And a Mission check that they don't have any parachutey stuff in there either. Which leaves triggering via mavlink, scripting and buttons, I think. I don't think we can do anything about those.... would that (along with release notes!) be enough to say we've made a best-effort? |