Quote:
Originally Posted by dougwilliams
We are integrating a NAV6 IMU with the RoboRIO and had it working fine over USB (with USB/RS232 converter), and tried to go direct to the RoboRio RS232 port. We keep getting errors when running - similar to what we had with the USB port before we correctly passed the port (SerialPort::kUSB). We have swapped that out with SerialPort::kOnboard, but still have no luck. We tried swapping the TX/RX wires, but the RoboRIO choked after that, so we went back to the original which seemed more promising.
What should we see in the RoboRIO web page - we always seem to see two ports, but both are stuck at 9600. In the LIDAR thread someone mentiones something about the "main" I2C port not working, but the MXP one does, and I'm wondering if there is a setting somewhere that is steering logical ports to either the "On Board" ports vs the MXP ports.
Our code and most relevant setup file for serial comms is here:
https://github.com/team2053tigertron...r/FODRobot2015
Related side question 1: Where is the latest "official" downloadable source for the WPILib? I see a few repositories, but nothing I can discern as latest/official, etc. (So I can browse the functions and make sure we are using them right).
Related side question 2: Are there any links to Beta teams who used C++, and posted their code somewhere? I have only found one or two, but none that used the serial port...
|
One thing to check is that the Roborio "console out" functionality needs to be disabled to use the Roborio RS-232 port.
Others have successfully integrated the nav6 with Roborio via the RS-232 port, though I don't know about doing so in c++.