-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
AP_HAL_SITL: initialize rcout safety state #27611
AP_HAL_SITL: initialize rcout safety state #27611
Conversation
I would have expected a change in |
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.
looks wrong.
you can pass BOARD_SAFETY_ENABLE_DEFAULT 1 to force it . I don't think that using safety button on SITL is convenient things
Nope, that doesn't work. That's exactly what this PR is fixing. The entire BRD_SAFETY_DEFLT parameter is broken in SITL. This change has no impact by default. As for why I wanted this change:
|
75a9ed3
to
5379761
Compare
Yeah, looking at this in the cold light of day, I have no idea why I thought this was the best place to do this 😆. Fixed. |
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. BRD_SAFETY_DEFLT
is zero in SITL, so this should have no change in behavior unless you change it.
for reasons I can't fathom, defaulting the rangefinder state causes problems with the vehicle orientation in SITL - probably a state update fix somewhere. This test was kind of broken anyway - the RangeFinder was pointing latterally out from the vehicle, but is displayed forward of the vehicle (ther RANGEFINDER mavlink message conveys no orientation information)
This allows BRD_SAFETY_DEFLT=1 to work correctly for SITL.
5379761
to
c206e12
Compare
I've rebased this on a fix for Rover's RangeFinder test. I think what's happening is that the vehicle used to move forward a little but the change in safety state stops that happening. We used to point the rangefinder laterally,so moving forward brought it in-line with the post. Very strange. |
This allows BRD_SAFETY_DEFLT=1 to work correctly for SITL.