-
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: remove COM_POS_FS_DELAY
#24063
Conversation
A user configurable delay for the internal `vehicle_local_position` seems confusing in my eyes. It's a different timeout for fixed-wing and multirotor which might have made sense earlier but not really anymore since the topic is constantly published by the estimator and not expected to time out on either vehicle type and the parameter description is also misleading because it's outdated.
FLASH Analysispx4_fmu-v5x
px4_fmu-v6x
Updated: 2024-12-02T15:22:12 |
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.
I so far never touched COM_POS_FS_DELAY
, the fixed-wing dead-reckoning behavior is tuned with COM_POS_FS_EPH
. Wouldn't know when you'd want to set this to anything else than 1 so I agree with removing it.
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.
This sets number of seconds that the position checks need to be failed before the failsafe will activate
Looks like the original implementation was a failsafe reaction delay, not just a timeout. 1s timeout on the local position message is reasonable and does not need to depend on the vehicle type (they all run the same estimator with same data rates).
@MaEtUgR This is referenced in https://docs.px4.io/main/en/config/safety.html#position-gnss-loss-failsafe - what change is needed? Is it simply that after 1s of not having a position estimate the failsafe triggers? Or to put it another way, does this capture what is needed in the docs PX4/PX4-user_guide#3479 |
Solved Problem
When answering a support question I found that currently
COM_POS_FS_DELAY
configures the timeout for the internalvehicle_local_position
uORB message which is to my knowledge not expected to time out as long as the estimator is running since it gets published regularly also when the position (or altitude) is flagged invalid.A user-configurable timeout for the internal
vehicle_local_position
seems confusing in my eyes. It's a different timeout for fixed-wing and multirotor which might have made sense earlier but not really anymore since the topic is constantly published by the estimator and not expected to time out on either vehicle type and the parameter description is also misleading because it's outdated.Solution
I remove the parameter and hardcode the timeout for the
vehicle_local_position
to 1 second.Changelog Entry
Alternatives
Is the estimate published so much less often when dead-reckoning as fixed-wing? If yes, shouldn't that fact then not be represented within the uORB message instead of a user-facing parameter?
Test coverage
No particular tests done.
Context
The end-user was looking to delay the failsafe land when the local position gets invalid and found a match with the parameter description but it didn't work as expected.