Wrong negative values of GPS

I’m having a similar issue with longitude using the github payload decoder for TTN at [https://github.com/RAKWireless/RUI_LoRa_node_payload_decoder/blob/master/RUISensorDataDecoder_for_TTN.js]. I discovered the lat/lon decoding works fine for positive values but fails when a value is negative. For example the longitude of FB024E27 shows up as 4211232295 but the “Decimal from signed 2’s complement” using the hex to decimal converter (https://www.rapidtables.com/convert/number/hex-to-decimal.html?x=FF) is correct of -83735001. Anyway someone some update the TTN payload decoder to work with negative lat/lons?

Hi @gcutrell We will check this.

we have fix the bug, please clone the newest script.