Shop OBEX P1 Docs P2 Docs Learn Events
How to read coordinates from GPS — Parallax Forums

How to read coordinates from GPS

GoosieGoosie Posts: 1
edited 2008-05-10 04:17 in General Discussion
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

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-05-09 03:47
    Yes, Fractionalminutes is a word length value and by combining the two you get the whole word.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-05-10 04:17
    This thread is being moved from the BASIC Stamp Forum to the Sandbox. The message is off topic in the BASIC Stamp Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.