Hello all,
I am attaching my team’s practice code generated by Robot builder. There are two attached files; the C++ file generated by robot builder, and the Java file generated by robot builder. I would attach the Robot builder file and the wiring file, but Chief Delphi won’t allow me to. The robot that was modeled with the Robot builder has a two motor drivetrain, along with a pneumatic shifter, and a manipulator with a double actuated cylinder, a navigation subsystem with two encoders and a gyro.
The pneumatic subsystem contains a compressor. We have decided to use gamepads instead of joysticks under the Operator Interface, one for the driver and one for the manipulator, and this required creating our own gamepad class, as it is not provided in the wpilib. Under commands, we have included a generic drive with gamepad command for teleoperated mode and an autonomous command for autonomous mode. We have also decided to include two commands to operate the manipulator, Cylinder In and Cylinder Out.
We also modified the Iterative Robot class for Java, so that periodic loops can follow a timer instead of the driver station packets, like C++.
RobotBuilder can be found on firstforge and I assume on http://wpilib.screestepslive.com tomorrow.<br><br><a class='attachment' href='/uploads/default/original/3X/4/1/414914b46843d98a61f55e070061d947db873d80.zip'>FRC4478_Cpp_2012.zip</a> (101 KB)<br><a class='attachment' href='/uploads/default/original/3X/3/1/3150f9f8e7bfbfe25e3b97a17e2cabf452c2c5d8.zip'>FRC4478_Java_2012.zip</a> (254 KB)<br><br><br><a class='attachment' href='/uploads/default/original/3X/4/1/414914b46843d98a61f55e070061d947db873d80.zip'>FRC4478_Cpp_2012.zip</a> (101 KB)<br><a class='attachment' href='/uploads/default/original/3X/3/1/3150f9f8e7bfbfe25e3b97a17e2cabf452c2c5d8.zip'>FRC4478_Java_2012.zip</a> (254 KB)<br>