How to read coordinates from GPS
Hello, I am busy with a big project. Whe are making a solarboat to race in Holland. (solarboat.be or frisiansolarchallenge.nl)
I am using the GPS module from Parallax but having some problems.
I use an ATmega16 microprocessor to have communication with the module. I program in C language.
I receive the coordinates like this in smartmode:
degrees=byte1;
minutes=byte2;
fraqtionalminuteshigh=byte3;
fraqtionalminuteslow=byte4;
direction=byte5;
My problem is how make the fraqtional minutes to be come one?
Is it as easy as it is? Just put byte3 first en byte4 behind so I become a 16 bit variable?
Thank you
I am using the GPS module from Parallax but having some problems.
I use an ATmega16 microprocessor to have communication with the module. I program in C language.
I receive the coordinates like this in smartmode:
degrees=byte1;
minutes=byte2;
fraqtionalminuteshigh=byte3;
fraqtionalminuteslow=byte4;
direction=byte5;
My problem is how make the fraqtional minutes to be come one?
Is it as easy as it is? Just put byte3 first en byte4 behind so I become a 16 bit variable?
Thank you
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support