Quasics2016Code/Mettaton/src/Commands/MoveArmForTime.cpp
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
BEGIN AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = CONSTRUCTOR
MoveArmForTime::MoveArmForTime(double seconds, double power): Command() {
    m_seconds = seconds;
    m_power = power;
	Requires(Robot::shooterArm.get());
	stopTime = int(m_seconds * 50 + .5); 
	timer = 0; 
}
MoveArmForTime :: MoveArmForTime ( double seconds , double power ) : Command ( ) { m_seconds = seconds ; m_power = power ; Requires ( Robot :: shooterArm . get ( ) ) ; stopTime = int ( m_seconds * 50 + .5 ) ; timer = 0 ; }
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
BEGIN AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = CONSTRUCTOR
// Use requires() here to declare subsystem dependencies // eg. requires(chassis); // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES //Convert Seconds to cycles //set cycle counter to 0