Skip to content

Commit

Permalink
Redo commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
sonora committed Aug 6, 2023
1 parent 7f64095 commit 4620fbb
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,13 @@ private boolean isDistanceLess(float currentSpeed, double dist, double leadDist,
}

public float getSpeed(Location loc) {
boolean simulation = false;
if (locationProvider != null) {
simulation = locationProvider.getLocationSimulation().isRouteAnimating();
}
// Hardy 2023-08-05: I believe the limitation to the non-simulation case may be deprecated?
// Hardy 2023-08-05: Remove flooring the speed to facilitate low speed adjustment (Issue #17376)
//boolean simulation = false;
//if (locationProvider != null) {
// simulation = locationProvider.getLocationSimulation().isRouteAnimating();
//}
float speed = DEFAULT_SPEED;
//Hardy 2023-08-05: It is unclear why we exclude the simulation case (next line) here, and floor reporting currentSpeed (second-next line):)
//if (loc != null && loc.hasSpeed() && !simulation) {
// speed = Math.max(loc.getSpeed(), speed);
if (loc != null && loc.hasSpeed()) {
Expand Down

0 comments on commit 4620fbb

Please sign in to comment.