Thread: GPS with VEX
View Single Post
  #23   Spotlight this post!  
Unread 25-10-2007, 08:07
Peter Randall Peter Randall is offline
Director of Technology
FRC #1218 (Vulcan Robotics)
Team Role: Teacher
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Philadelphia
Posts: 37
Peter Randall will become famous soon enoughPeter Randall will become famous soon enough
Re: GPS with VEX

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
__________________
Peter Randall
Chairman, Department of Engineering & Robotics
Springside Chestnut Hill Academy
TEAM 1218