|
Re: Trouble with Eclipse (Java)
public class ArmDown extends Command {
public ArmDown() {
// Use requires() here to declare subsystem dependencies
// eg. requires(chassis);
requires(Robot.noodleAndToteSystems);
}
// Called just before this Command runs the first time
protected void initialize() {
}
// Called repeatedly when this Command is scheduled to run
protected void execute() {
Robot.noodleAndToteSystems.SetArmMotorSpeed(-1);
}
// Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() {
return false;
}
// Called once after isFinished returns true
protected void end() {
Robot.noodleAndToteSystems.SetArmMotorSpeed(0);
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
protected void interrupted() {
return arm.limitSwitch3;
return arm.limitSwitch4;
end();
}
}
___________________________________
The error is at the top of this page, and every other page in the program.
|