View Single Post
  #2   Spotlight this post!  
Unread 26-01-2015, 09:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using shared variables instead of global variables

Quote:
Originally Posted by GuyM142 View Post
Some state machines do different things depending on the state of other state machines,...
That sounds like it could get confusing. No wonder you're having difficulty finding things. I can understand how it can be helpful to encapsulate groups of states into their own machine, but you probably see now that it's often a false optimization to do it from the bottom up (or the inside out, depending on your perspective).

I know there's not a lot of time left, and you've probably put a lot of effort into what you already have, so I won't seriously suggest refactoring your code so there aren't so many intersystem connections. But next time you do something similar, I hope you'll be able to come up with a less tangled architecture.
Reply With Quote