|
Re: Multiple Autonomous Actions
Quote:
Originally Posted by wt200999
Along this line, as you get more complex you will end up having code running off the screen (bad practice), so you really limit yourself in that regard. If you give meaningful names to your states it should actually be far easier to navigate and becomes self commenting.
I am not sure what you mean by not being able to move states around, do you mean physically move on the block diagram, or changing the sequence?
If you limit each state to small functions you can make it more modular and keep each state smaller. This may force you to pass more data however.
This is the structure I like to use to pass data between states:
Attachment 19396
|
i was meaning more moving the sequence. i really liked just being able to copy and paste and move things around. Are code is posted here if you want to see how we did it. http://www.chiefdelphi.com/media/papers/3152
Also i really like your type def idea that make it much easier to move things around. I will give that a try.
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Last edited by Bpk9p4 : 11-05-2015 at 01:15 PM.
|