Quote:
Originally Posted by docdavies
If anyone has figured out how to make the Arduino "wireless" and allow it to accept commands from from a separate laptop?
Doc
|
For CARD (Collegiate Arial Robotics Demostration) Team #6, I developed what was supposed to be an FRC compatible Arduino "robot" and Driver Station.
We used the 2009-2010 wireless bridge, since we could "borrow" it from an FRC team, an Arduino Mega 2560 and an ethernet shield. The robot code unfortunatly is not compatible with the official driver station. This is due to the fact that the Arduino could not read the data from the shield fast enough. We used the FRC protocol, but had to reduce the user data sizes such that the total packet size was under 128 bytes, vs the FRC 1024 bytes.
We never tested the limits of the ethernet shield other than that it couldn't do 1024 bytes/packet, but could do 192 bytes/packet. We shrank the packets to 128 bytes for saftey once we knew the size of our user data. We speculated that it would be possible to support the offical packet size, but it would require significant improvments to the Arduino ethernet library. We opted for the quicker option.
The driver station should be compatible with an FRC robot, but I never tested it with a real cRio.
If you try to use any of this, and have issues please contact me.
DISCLAIMER: This worked for us, but it is lacking some of the saftey features of the official cRio/DS. Some of the safties I left out were probably there for good reason. I take no responsiblity for anything you do with this code.
You can find the code from this project on Google Code.
Search for "SCOE".