-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Fix ArduPilot starting alt locations #23674
base: master
Are you sure you want to change the base?
Fix ArduPilot starting alt locations #23674
Conversation
@@ -555,6 +555,9 @@ float Aircraft::rangefinder_range() const | |||
// Add some noise on reading | |||
altitude += sitl->sonar_noise * rand_float(); | |||
|
|||
// this rangefinder is mounted on the simulated frame, 5cm off the ground: | |||
altitude += 0.05; |
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.
Does this jive with RNGFND1_GNDCLEAR?
d490b4e
to
726d300
Compare
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.
Small thing but one of the commits is missing its prefix, "adjust starting location alt"
726d300
to
132aac0
Compare
Fixed. |
is this worth a 4.4.1 backport? |
SITL was starting with a negative height-above-ground, which is very confusing
SITL was starting with a negative height-above-ground, which is very confusing
132aac0
to
e5d3095
Compare
... simulation was starting off underground; this was causing an integer wrap in our simulated rangefinders, which was unpleasant.