Orange-OpenSource / its-client

This Intelligent Transportation Systems (ITS) MQTT client based on the JSon ETSI specification transcription provides a ready to connect project for the mobility (connected and autonomous vehicles, road side units, vulnerable road users,...). Let's connect your device or application to our Intelligent Transport Systems (ITS) platform!
MIT License
7 stars 8 forks source link

Do not use ETSI units in core structs and functions #84

Closed nbuffon closed 8 months ago

nbuffon commented 1 year ago

ETSI units are exchange related and more importantly both confusing and not precision lossless

For example when working with GPS coordinates, ETSI does not work with floating degrees but integer microdegrees
When computing transformation on those coordinates (geodetic to ENU and conversely) going through ETSI coordinate system can lead to precision loss

All data transformation and computing should be done using universal unit systems (metric, degrees, etc.)

Data should be translated to ETSI unit system as close to the communication modules as possible

nbuffon commented 10 months ago

New core structs and functions using SI units have been merged in 2.0.0 branch via PR #95 Still missing ETSI <-> SI translation functions are coming in PR #102