You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
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;
while using this code i got different location which is about 15km far from my home waht should i do please help.
The text was updated successfully, but these errors were encountered: