Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Team 1114 Example C++ Code (http://www.chiefdelphi.com/forums/showthread.php?t=69750)

Pat Fairbank 26-10-2008 21:59

Team 1114 Example C++ Code
 
1 Attachment(s)
(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.

Travis Hoffman 27-10-2008 16:39

Re: Team 1114 Example C++ Code
 
Quote:

Originally Posted by Pat Fairbank (Post 772218)
(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.

It's good to see the C++ published beta tester code samples catching up with the LabVIEW - looking forward to the autonomous code sample!

Keep 'em coming, folks. :)

Pat Fairbank 12-11-2008 22:30

Re: Team 1114 Example C++ Code
 
1 Attachment(s)
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.


All times are GMT -5. The time now is 23:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi