Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i can't get proper location while using this code #21

Open
harry1227 opened this issue Mar 20, 2019 · 3 comments
Open

i can't get proper location while using this code #21

harry1227 opened this issue Mar 20, 2019 · 3 comments

Comments

@harry1227
Copy link

while using this code i got different location which is about 15km far from my home waht should i do please help.

@jurik555
Copy link

Hi, Here are mistakes in code. In DFRobot_sim808.cpp wrong convertion to Decimal format DD mm.mmmm. If you like to get precision position correct DFRobot_sim808.cpp:
should change GPSdata.lat = latitude/100; to GPSdata.lat = latitude; (also longitude) and you will get DDmm.mmmmmm format. Also here mistake in speed convertion: GPSdata.speed_kph= atof(speedp) * 1.852; should be GPSdata.speed_kph= atof(speedp) / 1.852;

@acu18ar
Copy link

acu18ar commented Aug 5, 2020

Hi, Here are mistakes in code. In DFRobot_sim808.cpp wrong convertion to Decimal format DD mm.mmmm. If you like to get precision position correct DFRobot_sim808.cpp:
should change GPSdata.lat = latitude/100; to GPSdata.lat = latitude; (also longitude) and you will get DDmm.mmmmmm format. Also here mistake in speed convertion: GPSdata.speed_kph= atof(speedp) * 1.852; should be GPSdata.speed_kph= atof(speedp) / 1.852;

WRONG it is not the answer.

@acu18ar
Copy link

acu18ar commented Aug 6, 2020

reemplazar la libreria de acuerdo con:

https://github.com/acu18ar/SIM808

funciona...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants