View Full Version : 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?
Brian Selle
24-10-2012, 20:57
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/showthread.php?t=99679
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.