-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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_RangeFinder: allow for more than 327m range #27886
base: master
Are you sure you want to change the base?
AP_RangeFinder: allow for more than 327m range #27886
Conversation
1bf6995
to
88faf49
Compare
ea8a289
to
1239beb
Compare
|
5c0e9ae
to
09efa59
Compare
09efa59
to
0983029
Compare
0983029
to
23bf660
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.
Thanks for the review, @IamPete1 !
23bf660
to
8f566a9
Compare
return _max_distance_cm; | ||
// return the larger of the base class's distance and what we | ||
// receive from the network: | ||
return MAX(baseclass_max_distance, _max_distance); |
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.
return MAX(baseclass_max_distance, _max_distance); | |
return MIN(baseclass_max_distance, _max_distance); |
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 think this is now the opposite to what it did before?
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.
Mmm... again, I vaguely recall discusssing at DevCall. Made it work like it did before.
return params.max_distance_cm; | ||
} | ||
return _max_distance_cm; | ||
// return the larger of the base class's distance and what we |
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.
// return the larger of the base class's distance and what we | |
// return the lesser of the base class's distance and what we |
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.
Hmmm. That's odd. Fixed.
libraries/SITL/examples/SilentWings/Params/Rolladen-Schneider-LS8b.param
Outdated
Show resolved
Hide resolved
libraries/SITL/examples/SilentWings/Params/Rolladen-Schneider-LS8b.param
Outdated
Show resolved
Hide resolved
libraries/SITL/examples/SilentWings/Params/Schleicher-ASW27B.param
Outdated
Show resolved
Hide resolved
libraries/SITL/examples/SilentWings/Params/Schleicher-ASW27B.param
Outdated
Show resolved
Hide resolved
f657c9b
to
df71eb6
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.
Fixed things, thanks!
return params.max_distance_cm; | ||
} | ||
return _max_distance_cm; | ||
// return the larger of the base class's distance and what we |
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.
Hmmm. That's odd. Fixed.
libraries/SITL/examples/SilentWings/Params/Rolladen-Schneider-LS8b.param
Outdated
Show resolved
Hide resolved
libraries/SITL/examples/SilentWings/Params/Schleicher-ASW27B.param
Outdated
Show resolved
Hide resolved
libraries/SITL/examples/SilentWings/Params/Schleicher-ASW27B.param
Outdated
Show resolved
Hide resolved
1d91828
to
de16535
Compare
|
||
// return the smaller of the base class's distance and what we | ||
// receive from the network: | ||
return MIN(baseclass_min_distance, _min_distance); |
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 would have expected this one to be MAX
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.
Fixed. I think I recall us discussing this change at DevCall, but I can't find nnotes on it, so I've made it work like the old code.
de16535
to
7b8cbb4
Compare
… rename also fix a race condition in the quadplane-tailsitter test - which is unlikely to ever trigger
7b8cbb4
to
246b082
Compare
No description provided.