# LGT-92 low GPS accuracy

**URL:** <https://www.thethingsnetwork.org/forum/t/lgt-92-low-gps-accuracy/30321>\
**Category:** Dragino\
**Created:** [September 27, 2019, 11:48pm UTC](https://www.thethingsnetwork.org/forum/t/lgt-92-low-gps-accuracy/30321 "2019-09-27T23:48:19Z")\
**Posts on this page:** 1\
**Showing post:** 43

<div class="post-metadata">

**Author:** ![engelking](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/engelking/32/46323_2.png) [@engelking](https://www.thethingsnetwork.org/forum/u/engelking)\
**Post date:** [January 28, 2021, 9:58am UTC](https://www.thethingsnetwork.org/forum/t/lgt-92-low-gps-accuracy/30321/43 "2021-01-28T09:58:50Z")

</div>

On the serial console the GPS Date seems to be valid  
Roll=1.82 Pitch=3.03 Altitude:26.2M  
[2117186]North: 52.xxxxxx  
[2117187]East: 9.xxxxxx  
[2117189]PDOP is 2.71  
[2117189]Satellite: 6.10

It is a problem with the new payload decoder.  
With the decoder for version [1.50](https://www.dragino.com/downloads/downloads/LGT_92/Decoder/LGT92-v1.5.0_decoder_20191129.txt) longitude can be decoded.

Edit:  
I have modified line 56 to “if(bytes[5] !== 0)” and the Decoder for 1.6.4 works as expected.

Edit2:  
I have made a second modification in the payload decoder.  
In the “validation if clause” i have replaced the 0 value against “” like this:

> ```
> else { latitude="";//gps latitude,units: Â° }
> 
> ```

Especially in Alarm (on button long press) messages the transmitted position was “Latitude”: 0.000000, “Longitude”: 0.000000 , a valid GPS Position.  
The empty Value is not visualized on a map and for me a much better solution.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/lgt-92-low-gps-accuracy/30321)._
