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
Create a new command that takes a parameter (for example, a Setpoint Command)
Add a preset for the parameters for that command
Use that command elsewhere (button binding, command group, etc)
Update the preset to use different value(s)
The usages of that command will still use the initial values of the preset, not the new ones.
Possible Solutions
Bind preset usages to that preset
This would make RobotBuilder read the preset values at generation time, not at use-time, and as such would always be up to date.
Generate static factory methods for each preset
For example, having a MoveElevator command taking a single setpoint as its argument and with the presets top, middle, bottom, and intake.
This would be an improvement on the previous solution, as usages of the presets would need to know which factory method to call. The constructor would remain public so more than just the presets would be usable. However, a default constructor should not be generated
The text was updated successfully, but these errors were encountered:
Detail
The usages of that command will still use the initial values of the preset, not the new ones.
Possible Solutions
Bind preset usages to that preset
This would make RobotBuilder read the preset values at generation time, not at use-time, and as such would always be up to date.
Generate static factory methods for each preset
For example, having a
MoveElevator
command taking a single setpoint as its argument and with the presetstop
,middle
,bottom
, andintake
.This would be an improvement on the previous solution, as usages of the presets would need to know which factory method to call. The constructor would remain public so more than just the presets would be usable. However, a default constructor should not be generated
The text was updated successfully, but these errors were encountered: