Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   moving parts of robot during robotinit (http://www.chiefdelphi.com/forums/showthread.php?t=134774)

schleprock 17-02-2015 14:09

moving parts of robot during robotinit
 
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

Re: moving parts of robot during robotinit
 
Quote:

Originally Posted by schleprock (Post 1445782)
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:
Code:

DISABLED – a state in which a ROBOT has been commanded by the Driver Station to deactivate all outputs.

GeeTwo 17-02-2015 14:38

Re: moving parts of robot during robotinit
 
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.


All times are GMT -5. The time now is 16:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi