meshtastic-backend icon indicating copy to clipboard operation
meshtastic-backend copied to clipboard

Default Coordinates GPS position 0.0,0.0 and latitude 0 should not be send

Open Noki opened this issue 3 years ago • 1 comments

From looking at the MQTT data and map of the global channel it looks like some nodes report their latitude, longitude and altitude as "0".

{"channelId":"LongSlow","gatewayId":"!a84c7038","packet":{"from":1230671069,"to":-1,"channel":177,"decoded":{"latitudeI":0,"longitudeI":0,"altitude":0,"batteryLevel":33,"time":1639753585},"id":1481766144,"rxTime":1639753583,"rxSnr":5.25,"hopLimit":1,"wantAck":false,"priority":"UNSET","rxRssi":-36}}

From looking at the code (https://github.com/meshtastic/Meshtastic-device/blob/6fc3c9c8689e754869097b797c6d9dfe101cc182/src/gps/GeoCoord.h#L85) it seems that those values get initialized as 0 and are sent like this later on.

The behaviour should be changed so that values that can't be determined do not default to 0 and are not reported / used at all.

Noki avatar Dec 17 '21 15:12 Noki

This would come from the backend. latitudeI and longitudeI are not in the device.

mc-hamster avatar Dec 17 '21 20:12 mc-hamster