View Single Post
  #1   Spotlight this post!  
Unread 04-01-2013, 12:43
sophiad68's Avatar
sophiad68 sophiad68 is offline
Registered User
AKA: Sophia Doerr
FRC #4478 (Materia Oscura)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2004
Location: Milford, Michigan
Posts: 3
sophiad68 is a jewel in the roughsophiad68 is a jewel in the roughsophiad68 is a jewel in the roughsophiad68 is a jewel in the rough
FRC Team 4478 Code

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.
Attached Files
File Type: zip FRC4478_Cpp_2012.zip (100.5 KB, 29 views)
File Type: zip FRC4478_Java_2012.zip (253.6 KB, 61 views)