|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Team 1114 Example C++ Code
(Reposted here from the FIRST Forums for better reliability and visibility)
Over the course of the beta test, Team 1114 has been retrofitting the 2007 robot, Simbot Prime, with the new control system. Here is the C++ code we've developed for teleoperated control of the robot. It includes examples of an IterativeRobot with one-joystick drive and simple arm control, as well as some convenience classes we wrote for double solenoids and the Logitech Dual Action Gamepad (unfortunately, we can't distribute the source of the WPILib library we're building against due to the terms of the NDA). We're currently working on programming an autonomous mode which can score a tube on the rack guided by the green light; the code'll be released in a week or two when we're done. |
|
#2
|
||||||
|
||||||
|
Re: Team 1114 Example C++ Code
Quote:
Keep 'em coming, folks. ![]() |
|
#3
|
||||
|
||||
|
Re: Team 1114 Example C++ Code
Here's the final version of the code, which has an autonomous mode that tracks the green light and scores a tube on a spider leg. Also included is a class we wrote for doing PID calculations 1114-style. Comments and questions are welcome.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TBA]: Example Code Addition | SamC | The Blue Alliance | 5 | 15-07-2011 16:11 |
| Example code | TEAM1949 | Programming | 10 | 15-03-2006 16:00 |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| Example accelerometer code released. | Kevin Watson | Programming | 0 | 20-01-2005 03:45 |
| Autonomous Code Example | Matthew_H | Robotics Education and Curriculum | 24 | 21-11-2003 10:02 |