Thread: GPS with VEX
View Single Post
  #30   Spotlight this post!  
Unread 28-10-2007, 23:56
dasmoenator dasmoenator is offline
Registered User
no team
 
Join Date: Oct 2007
Rookie Year: 2005
Location: FL
Posts: 6
dasmoenator is an unknown quantity at this point
Send a message via AIM to dasmoenator Send a message via MSN to dasmoenator
Re: GPS with VEX

Quote:
Originally Posted by Peter Randall View Post
We are using Easy C which uses the WPI library. Since it can run the CMU camera on the TTL serial port, it clearly has the functions we require, unfortunately, I can't figure from the WPI documentation what the syntax should be for reading and writing to the serial port. The Parallax runs at 4800 baud, which we set (I think) via a command in our Init function
The issue is that the Prallax need us to send it a command string "!GPS0x05" and then read the reply which is the latitude in decimal format. I am trying to read it into a Long variable, but when I print the value, all I get is -1. We can see from the GPS that it has acquired a fix. I am befuddled

PGR
Please post back or let me know if you find a way to get it to work. I'm very interested in getting something like this off the ground and working.