Thanks
The team members of FRC Team 2220 would like to give a big thanks to all of the Sponsors, Mentors and Parents that make having this team possible.
Thank you!
Team Login
| Control Board.h |
|
|
|
| Written by TarinB |
| Saturday, February 13 2010 16:45 |
|
#ifndef CONTROLBOARD_H_ #define CONTROLBOARD_H_
#include <iostream.h> #include "math.h"
#include "WPILib.h" #include "AxisCamera.h" #include "TrackAPI.h" #include "VisionAPI.h"
class ControlBoard { public:
enum WHICH_STICK { LEFT, RIGHT, SHOOTER }whichStick;
enum JUMPERS // Driver Station jumpers to control program operation { ARCADE_MODE = 1, // Tank/Arcade jumper is on DS Input 1 (Jumper present is arcade) ENABLE_AUTONOMOUS = 2, // Autonomous/Teleop jumper is on DS Input 2 (Jumper present is autonomous) ALTERNATE_MODE = 3, AUTONOMOUS_SWITCH = 4 // Autonomous modes: Jumper off = powerslide, on = straight ahead } jumpers;
DriverStation* ds; Joystick* leftStick; Joystick* rightStick; Joystick* shootStick;
ControlBoard(void);
float GetX(int); float GetY(int); bool GetRawButton(int, UINT32); bool GetDigitalIn(UINT32);
};
#endif |










