View Single Post
  #5   Spotlight this post!  
Unread 09-01-2013, 12:28
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

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);
}
Reply With Quote