-
Notifications
You must be signed in to change notification settings - Fork 85
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
Speed Limit interface km/h to MPH unit conversion is wrong #988
Comments
I will include this constant change into the new speed limits UI merge request. |
oops, lol, didn't notice your commit |
originalfoo
added a commit
that referenced
this issue
Feb 6, 2022
- [Meta] TM:PE 11.6.4-hotfix-7 - [Meta] Bugfix for default speeds which affects speed limits tool, overlays, and roundabout curvature speed - [Fixed] Default netinfo speed should only inspect customisable lanes #1362 #1346 (aubergine18) - [Fixed] Fix `SPEED_TO_MPH` value in `ApiConstants.cs` #1364 #1363 #988 (aubergine18) - [Removed] Obsolete: `SPEED_TO_MPH` and `SPEED_TO_KMPH` in `Constants.cs` #1364 #1363 (aubergine18)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The speed limit conversions to MPH are incorrect. For example the speed limit interface gives:
and so forth.
I believe the problem is in Constants.cs Line 27:
public const float SPEED_TO_MPH = 32.06f; // 50 km/h converted to mph
50 km/h is 31.06 mph, not 32.06 (actually would be 31.07 if rounding; the exact conversion is 31.06856).
https://www.google.com/search?q=50+km%2Fh+to+mph
The text was updated successfully, but these errors were encountered: