SensorDecoders
SensorDecoders copied to clipboard
How do you handle the negative coordinates (south or west)
Hi,
In the specification you wrote the following: "If the device fails toget GNSSdata, the latitude or longitude will show FFFFFFFF."
Then how do you encode the negative coorinates (for example any south 0.000001° or west 0.000001° coordinates)?
It seems that the decoder in the following lines simply ignoring these "error" values and generating valid coordinates for the int -1 (FFFFFFFF) values.
https://github.com/Milesight-IoT/SensorDecoders/blob/5911981c43391536ade46806814729c5ffa38cb3/AT_Series/AT101/AT101_Chirpstack.js#L30-L37
Or simply do not put any device to that 2 (~20 cm width, ~40.000 km long) circles? :)
Handle it with a simple process and disregard this coordinate. In future protocols, we'll report outliers separately to minimize data loss.