Skip to content

Commit b74dfde

Browse files
rafael-graunkepatrickelectric
authored andcommitted
frontend: components: AutoCoordinateDetector: round lat/lon before sending SET_GPS_GLOBAL_ORIGIN
1 parent 9b83046 commit b74dfde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/frontend/src/components/vehiclesetup/configuration/compass/AutoCoordinateDetector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export default {
185185
},
186186
message: {
187187
type: 'SET_GPS_GLOBAL_ORIGIN',
188-
latitude: lat * 1e7,
189-
longitude: lon * 1e7,
188+
latitude: Math.round(lat * 1e7),
189+
longitude: Math.round(lon * 1e7),
190190
altitude: 0,
191191
target_system: autopilot_data.system_id,
192192
time_usec: 0,

0 commit comments

Comments
 (0)