I would like to know how to display my gps data in google map or google earth ?
I am using EM406a connected to arduino uno via shield. Download TinyGPS library and now using Simple TinyGPS example, with some addition of mine on line codes. This is my result :
2--> the present time is 11 but it shows the GMT time how to change it
3--> is there an opposite code for ss.available , say ss.notavailable? while info is not available i want to count how much time it takes till gps display the info
4--> I tried to understand, but couldn't gps.encode(c)
5--> What does the question mark stand for and why 6 in the end ?
it shows 0 instead of 1 ?? for whatever mins or seconds or hours
What does this mean? The sample stuff you show presumably came from the print statements you show, so they are not printing 0 everywhere. Nor are they showing 1 everywhere.
2-->would like to know how to display my information every second or two seconds or every minute, right now it gives info every
Time: 10:8:1
Time: 10:8:3
Time: 10:8:5
Time: 10:8:6
Time: 10:8:8
Time: 10:8:9
The time is when the GPS fix was received. You can't make it receive fixes more often. You can print the fix data only when the minute value changes, if you want.
3--> the present time is 11 but it shows the GMT time how to change it
Move to somewhere else. The GPS only shows GMT time. You have to apply the correct offset for your time zone.
4--> I tried to understand, but couldn't
Can't help you there. I understand it, and I don't understand what you don't understand.
It's calling the encode() method of the TinyGPS instance, with the last character received from the GPS. That function returns true or false (true when the NMEA sentence is complete; false when it is not).
5--> What does the question mark stand for and why 6 in the end ?
The ? mark and : are the only ternary operator in C. It says to evaluate the expression before the ? and return the value before the : if the expression is true and the value after the : if the expression is false.
PaulS thank you for replying in such short time
Concerning 1 :
i meant that my result for time is
Time: 10:8:0 (where it should be 10:8:1)
Time: 11:0:0 (where it should be 11:1:1)
how to make 0 appear as minute 1 or second 1
Time: 10:8:1
Time: 11:1:1
Concerning 2:
I would to know how to shift the time by GMT+1
thank you very much for explaining 4 and 5 now its clear to me
whats remaining beside the above is
A: I would like to know how to display my gps data in google map or google earth ?
B: is there an opposite code for ss.available , say ss.notavailable? while info is not available i want to count how much time it takes till gps display the info
Why are you supplying a second argument for 2 of the 3 ints? Supply it for all or none. Make sure that you understand WHAT that optional argument is doing.
I would to know how to shift the time by GMT+1
You have the time as a series of integers. It's not rocket science to increment the hour by the required amount, and test for overflow. Adding to the day and month and year is a little more challenging, but possible.
A: I would like to know how to display my gps data in google map or google earth ?
Do you know how to do that from ANY other platform? From the Arduino, it's the same.
B: is there an opposite code for ss.available , say ss.notavailable? while info is not available i want to count how much time it takes till gps display the info
The available() method returns the number of bytes of data available to be read. You can do one thing (read the data) if the value is greater than 0, and something else (mark time) when it is 0.
I would like to use google map on pc so later i move to presenting my data on mobile phone. And no i don't know how to display gps data on other platforms , i tried mini gps and SirfDemo but didn't manage to display anything
"
Why are you supplying a second argument for 2 of the 3 ints? Supply it for all or none. Make sure that you understand WHAT that optional argument is doing.
I didn't get what you mean by that.However, I am printing each separately so it look neat, otherwise if i use date and time function TinyGPS::get_datetime(unsigned long *date, unsigned long *time, unsigned long *age)
it will show in hhmmss and ddmmyy format. instead of hh:mm:ss and dd:mm:yy
I would like to use google map on pc so later i move to presenting my data on mobile phone. And no i don't know how to display gps data on other platforms , i tried mini gps and SirfDemo but didn't manage to display anything
PaulS that's a good point, i'll look it up as soon as i can
Cybernetician
i'll look it up , thanks.. i was wishing though it is arduino sketch related not VB6 because i never used it before while time is not on my side currently.