View Single Post
  #3   Spotlight this post!  
Unread 02-26-2016, 08:59 PM
FRC3220 FRC3220 is offline
Registered User
no team
 
Join Date: Feb 2016
Location: Spangle
Posts: 11
FRC3220 is an unknown quantity at this point
Re: Motors/solenoids won't work; Can't print to console

They're constructed under the Robot class definition, right?

Code:
class Robot: public IterativeRobot
{
	RobotDrive myRobot;
	Joystick stick;                      //Aren't they declared here...
	Joystick stick2;
	DoubleSolenoid solenoid1;
	DoubleSolenoid solenoid2;
	Solenoid shooter_piston;
	Solenoid claw;
	Relay shooter_motors;
	Relay arm_rotator;
	LiveWindow* lw;
	int autoloopcounter;

	const int button2 = 2;
	const int button3 = 3;
	const int button4 = 4;
	const int button5 = 5;
public:
	Robot() :
		myRobot(0,1,2,3)
		stick(0),                         //and initialized here?
		stick2(1),                                
		solenoid1(1, 2),
		solenoid2(3, 4),
		shooter_piston(5),
		claw(6),
		shooter_motors(0),
		arm_rotator(1),
		lw(LiveWindow::GetInstance()),
		autoloopcounter(0)
Reply With Quote