-
Notifications
You must be signed in to change notification settings - Fork 13.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
commander_params: COM_RC_IN_MODE - comment out of date #19634
Conversation
PS When this goes in need to fix https://docs.px4.io/master/en/config/joystick.html#enabling-px4-joystick-support and https://docs.qgroundcontrol.com/master/en/SetupView/Joystick.html and do a general search on COM_RC_IN_MODE in the docs. |
@hamishwillee I think the questions whether RC is required is somewhat orthogonal, so covered by other parameters. This parameter really only configures what is used as an input. |
@julianoes You might be right, but in the old version setting joystick disabled RC checks. So it is worth confirming everything in one go. |
@hamishwillee Thanks for bringing this up! I wasn't even aware of this part of the parameter description. It was folded in on the review page of #17404 and that's how it went unnoticed 🤦 My dream: Current state:
The failsafes are independent of the configuration here. They will kick in when losing the last valid stick input from RC or Joystick in a mode that is piloted by sticks and will trigger also when stick input was present before and later on lost in all other atuonomous modes if not disabled by https://docs.px4.io/v1.12/en/advanced_config/parameter_reference.html#COM_RCL_EXCEPT.
There are requirements on stick input see the answer just above but joystick data is ignored.
Checks are disabled yes. What circuit breaker are you referring to? What would it be set for?
No requirement for a joystick, RC input is ignored, joystick accepted, stick input requirements stay like I wrote above for the failsafe question.
Virtual joystick can not be distinguished from a real joystick PX4 side. Both are accepted. If I remeber correctly QGC preferably sends real joystick data if both are enabled. UX is not nicely predictable from the configuration.
No additional checks or requirements. Preflight check is like with any value other than 0.
Fallback means it uses the first available valid source and keeps on using that until it gets invalid and then switches to any other valid source that is/gets available. From there on you can repeatedly switch back and forth if sources get unavailable/available. All of this without landing, disarming or rebooting so it works mid-air.
No additional checks. RC calibration is not required for takeoff.
No more or fewer checks than with 1, 2, 3.
Only modes that don't require stick input, correct. That's a result of you not being able to have any stick input than checking the value of this parameter directly. |
Co-authored-by: Matthias Grob <maetugr@gmail.com>
Co-authored-by: Matthias Grob <maetugr@gmail.com>
Thanks @MaEtUgR , Those are all better than before. I've made some counter-suggestions "to my taste", with one question |
@MaEtUgR Can you please merge this - assuming it is all as we agreed! |
Merged, since we know it is more accurate than what was there! Thanks for approving @julianoes |
The comment for
COM_RC_IN_MODE
does not match the current value options.I have removed the invalid part, but we need to update with information about the new options.
I can't do that yet because I don't know for each case what protections are enabled/disabled.
@MaEtUgR can you clarify?
Options with questions/comments about behaviour as bullets.
@value 0
RC Transmitter only@value 1
Joystick only@value 2
RC and Joystick with fallback@value 3
RC or Joystick keep first@value 4
Stick input disabled