|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: Disable Robot in Code
Edit: DriverStation has a function called InDisabled(boolean)
Try calling that with true; it might work. --- You can override isDisabled() in your robot class like this: Code:
public boolean isDisabled() {
return super.isDisabled() || myDisableFlag;
}
Two things: - The Driver Station won't recognize that you are disabled when you set the flag - You'll need to make sure to clear the flag yourself when you want to enable again Last edited by euhlmann : 17-06-2016 at 13:28. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|