where in the subsystem do I put the SetDefaultCommand
Assuming new command framework, you would put it in RobotContainer as subsystem.setDefaultCommand(command)
Default commands in the new framework are entirely missing from docs.wpilib.org @Oblarg
Can I use a default command that requires() multiple subsystems? Do I need to set it as the default command for both, or is one okay, ie:
m_indexer.SetDefaultCommand(indexAndShoot)
where indexAndShoot has Requirements for both the indexer & shooter?
Not missing, just buried three headings down on Subsystems — FIRST Robotics Competition documentation
Thank you!
I was clicking through the search results and found deprecated Commandbased and robotbuilder references, but didn’t find that
Still curious if a Default Command that uses multiple subsystems is OK
So I’m having an issue where it is saying the command cannot be resolved to a variable
We’re going to need to see code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.