These are snippets from our code files, using an iterative robot template from last year. The talon channel (7) is the last channel we tested.
The class definition:
Code:
class FRC2410Robot : public IterativeRobot {
Talon* talonTest;
public:
void RobotInit();
void TeleopContinuous();
};
The robot setup:
Code:
void FRC2410Robot::RobotInit()
{
talonTest = new Talon(7);
}
The Teleop code:
Code:
void FRC2410Robot::TeleopContinuous()
{
testing->Set(1.0);
}