Quote:
Originally Posted by Jefferson
I have not been able to get commands to run in disabled. If you are able to, I'd like to know how.
|
Quote:
Originally Posted by Joe Ross
In Java, there is a setRunWhileDisabled method, that you can call in the constructor of the command. You also need to call the scheduler in the disabledPeriodic. I assume it's similar in C++.
|
Yup, in C++ it works like this:
Code:
virtual void RobotInit() {
CommandBase::init();
lw = LiveWindow::GetInstance();
RandomCommand->SetRunWhenDisabled(true);
}
.
.
.
virtual void DisabledPeriodic() {
RandomCommand->Run();
Scheduler::GetInstance()->Run();
}