![]() |
Subsystem Singletons in a command robot
Is there a technical reason that the subsystems in the command-based robot are done with static instances in CommandBase instead of using a more strongly enforced singleton mechanism, or is it just to make learning easier for students and mentors without an enterprise Java background?
|
Re: Subsystem Singletons in a command robot
It's simply to make it easier for kids to understand. That being said this next year we are going to use singletons. The main reason is that it is easier to swap out various subsystems without breaking commands that rely on a static variable.
Some more info on this topic at: http://www.chiefdelphi.com/forums/sh...ad.php?t=99679 |
| All times are GMT -5. The time now is 09:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi