Go to Post The future is a dark and mysterious place, and trying to force our current methods on that are patently absurd. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-24-2012, 02:08 PM
rdmarsh rdmarsh is offline
Junior Mentor - Programming
FRC #2186 (Dogs of Steel)
Team Role: Mentor
 
Join Date: Oct 2012
Rookie Year: 2008
Location: Herndon, VA
Posts: 6
rdmarsh is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-24-2012, 08:57 PM
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 162
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:26 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi