Pages: [1]   Go Down
Author Topic: Need advise to simulate GPS data  (Read 530 times)
0 Members and 1 Guest are viewing this topic.
Switzerland
Offline Offline
Sr. Member
****
Karma: 0
Posts: 269
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hy

I do receive with my Arduino different values which represent altitude, time , log, lat etc.
I collect them all and send it through the serial port back but in the NMEA format.
I store all vlaues in integer and now I need to put them together with checksum
to send it through serial port:

Example:

time = 191410
lat = 47355634
lon = 7393538
etc

=> $GPRMC,191410,A,4735.5634,N,00739.3538,E,0.0,0.0,181102,0.4,E,A*19

How can I achieve this the fastest way?

Thx
Andy
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Try out processing to read on the Port and get the values from there and display as needed.
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26249
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How can I achieve this the fastest way?
If it is going out over a serial link, I don't really see that speed is all that important.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Switzerland
Offline Offline
Sr. Member
****
Karma: 0
Posts: 269
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thats true so sprintf() would be fast enough?

Logged

Pages: [1]   Go Up
Jump to: