Reading location

Skip to first unread message

Hüseyin Kozan

Oct 27, 2017, 7:12:05 AM10/27/17
to ISOBlue

I am trying to read geo location of 2016 ault wheat data. But I thing the location is not right. Can you give the near locations ? And where am I wrong, if possible ?

Hüseyin Kozan

Yang Wang

Oct 27, 2017, 5:08:07 PM10/27/17
to ISOBlue
Hello Hüseyin,

I looked at the issue comment you left. I am not sure if you are reading the buffer correctly since I haven't used bit-buffer library personally.

For your example data,

<Buffer f2 99 95 95 1d d6 ce 49>

You should reconstruct latitude data as a four byte number in this order: 95,95,99,f2 which is 2509609458 in decimal.

The correct latitude is 40.9609458 which comes from 2509609458 * 0.0000001 - 210. 210 is the offset for that PGN. With this scheme, the longitude is -86.1708003.

Let me know if you have more questions.


Hüseyin Kozan

Oct 28, 2017, 10:18:31 AM10/28/17
to ISOBlue
Thank you Yang. I didn't notice the offset. This will fix my problem.

I am not using bit-buffer either. That was about bit processing at node-can. I can get messages directly from the channel. Not using the XML defined filter (aka DatabaseService).

28 Ekim 2017 Cumartesi 00:08:07 UTC+3 tarihinde Yang Wang yazdı:
Reply all
Reply to author
0 new messages