Log in

View Full Version : moving parts of robot during robotinit


schleprock
17-02-2015, 14:09
is it against the rules for the robot to move some parts during the robotinit() method (in java)?
in our case, we need to reset the encoder on the arms of the robot to a known position when the robot first starts up. this entails moving the arms to a limit switch and resetting the encoder.

thanks,

eddie12390
17-02-2015, 14:11
is it against the rules for the robot to move some parts during the robotinit() method (in java)?
in our case, we need to reset the encoder on the arms of the robot to a known position when the robot first starts up. this entails moving the arms to a limit switch and resetting the encoder.

thanks,

It is not possible to move motors (without altering the current pathways to have some sort of manual override) when the robot is Disabled (not in Teleoperated or Autonomous mode).

I don't have a specific rule, but the definition of Disabled in the rule book makes this illegal:
DISABLED – a state in which a ROBOT has been commanded by the Driver Station to deactivate all outputs.

GeeTwo
17-02-2015, 14:38
Agreed. Place the part as close to the desired location manually during setup, then make this calibration the first thing in autonomous.

Even better, unless it violates transport configuration or other practical issues, move the part to the proper location just before shutting down.