View Single Post
  #1   Spotlight this post!  
Unread 01-05-2008, 20:40
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: using mplab with vex

Let me second using the WPILibrary and the MPLab compiler for the Vex. The library does a lot of work for you and makes it very simple to do complex control programming in a few lines. There is very good documentation on all the calls.

----

On the serial port question, I've hooked a number of different serial devices to the Vex.

1) Are you sure you have the right voltage levels? The serial ports are at a TTL, not RS-232. When I connected the Garmin GPS I used the orange Vex box to convert the levels. There was also a null modem between the GPS and the orange box.

2) Baud rate - are you sure the baud rates and the bit configurations are set?

3) Are you polling fast enough to get the bits back without a buffer overflow? Do you get framing errors?

Are you using the base code, WPILib or something else?
Reply With Quote