Quasics2016Code/Mettaton/src/Commands/MoveForTime.cpp
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
BEGIN AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = CONSTRUCTOR
MoveForTime::MoveForTime(double seconds, double power): Command() {
    m_seconds = seconds;
    m_power = power;
	Requires(Robot::driveBase.get());
	stopTime = int(m_seconds * 50 +.5); 
	timer = 0; 
}
MoveForTime :: MoveForTime ( double seconds , double power ) : Command ( ) { m_seconds = seconds ; m_power = power ; Requires ( Robot :: driveBase . 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