![]() |
Java Commandbase Subsystems: Init vs DefaultCommand
Here is a question for all you Java types:
Which (if either) way is 'better' (less intensive on the cRIO, easier to understand, etc). In a command based template we have a compressor subsystem. We could start the compressor (using the standard compressor.start() method) in the subsystems initialization call. We could also just create a simple command that just does a compressor.start() in its execute function and then call this as the compressor subsystem's default command. Code:
public subcompressor(int compressorSwitchSlot, int compressorSpikeSlot) {Code:
public subcompressor(int compressorSwitchSlot, int compressorSpikeSlot) {Just cleaning up code and wondering. Thanks |
Re: Java Commandbase Subsystems: Init vs DefaultCommand
Quote:
|
Re: Java Commandbase Subsystems: Init vs DefaultCommand
Quote:
Quote:
|
Re: Java Commandbase Subsystems: Init vs DefaultCommand
Quote:
|
| All times are GMT -5. The time now is 22:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi