Quote:
Originally Posted by adamdb
Has anyone implemented a routine to read a gyro with openvex? Has anyone implemented an API to the second TX/RX port (the ones exposed on the controllers TX/RX pins)? I'm sure I can figure these out myself, but would like to save the effort if someone has already done it.
|
Though not for OpenVex, I wrote all the code you need to operate a gyro and the second serial port. Bill gave a link to the basic Vex code above, but the gyro code can be found here:
http://kevin.org/frc
Follow the directions for merging the gyro code for the FRC controller, which is almost identical to the Vex controller. Once you have it working, you should be able to merge the pieces of code you want into the OpenVex framework.
-Kevin