|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: SmartDashboard with CommandBasedRobot Template
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++.
|
|
#2
|
|||
|
|||
|
Re: SmartDashboard with CommandBasedRobot Template
Quote:
Thanks |
|
#3
|
||||
|
||||
|
Re: SmartDashboard with CommandBasedRobot Template
Quote:
Quote:
Code:
virtual void RobotInit() {
CommandBase::init();
lw = LiveWindow::GetInstance();
RandomCommand->SetRunWhenDisabled(true);
}
.
.
.
virtual void DisabledPeriodic() {
RandomCommand->Run();
Scheduler::GetInstance()->Run();
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|