View Single Post
  #6   Spotlight this post!  
Unread 13-02-2015, 17:48
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
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.
Reply With Quote