You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined instant command with no required subsystem. Generated code attempts to inject a subsystem parameter with the name “None” (the selection shown when no subsystems have been selected). Since there was no such subsystem (or header files), it would not build.
We created a “dummy” subsystem to assign to commands that did not need to require any of our other subsystems. This allowed it compile.
Added a parameter to the same instant command, and the autogenerated constructor now only shows the parameter, not the subsystem injected. Header file is correct.
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
explicit ClimberDeploy(bool climberDeploy, Dummy* m_dummy);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
ClimberDeploy::ClimberDeploy(bool climberDeploy): InstantCommand() {
m_climberDeploy = climberDeploy;
// Use AddRequirements() here to declare subsystem dependencies
// eg. AddRequirements(Robot::chassis.get());
SetName("ClimberDeploy");
AddRequirements(m_dummy);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
Also noticed that the generated SmartDashboard buttons do not update when adding/deleting parameters to an instant command.
So we are switching back to regular commands which seem to work fine.
The text was updated successfully, but these errors were encountered:
For the problem about instant commands not updating parameters, did you update the parameter presets after updating the parameters? There shouldn't be anything different between Instant Commands and Commands when generating SmartDashboard buttons.
Defined instant command with no required subsystem. Generated code attempts to inject a subsystem parameter with the name “None” (the selection shown when no subsystems have been selected). Since there was no such subsystem (or header files), it would not build.
We created a “dummy” subsystem to assign to commands that did not need to require any of our other subsystems. This allowed it compile.
Added a parameter to the same instant command, and the autogenerated constructor now only shows the parameter, not the subsystem injected. Header file is correct.
Also noticed that the generated SmartDashboard buttons do not update when adding/deleting parameters to an instant command.
So we are switching back to regular commands which seem to work fine.
The text was updated successfully, but these errors were encountered: