Looking at the screenshots below (I really apologize for the small font) how would I even begin to structure this sketch? What would that even look like? A whole bunch of nested "if" statements?
I've already written, compiled and physically tested each function individually; everything works as intended. However, I have no idea how to actually structure my code so that my machine will work as laid out in the 2D workflow.
Your flowchart, while a little unconventional is a good place to start.
The inputs are going to be switches of some type (push buttons, optical, or micro switches etc)
The servos (unless they’re something else) are actuators / motors of some type.
The logic flow is basically there, then you glue some logic around your detailed functionality.
Remember to build incrementally - getting each subsystem to work on its own. Functions() and arrays[] are useful for making your project modular and easier to maintain.
So I already have my code written. I’m just having difficulty understanding how to “organize” everything. I don’t know how I’d go about properly nesting all my functions into one another.
@paulpaulson I was researching what you suggested (IPO models) and came across something called a “finite state machine”. It sounds like the same thing you were talking about with the IPO’s. Thanks for pointing me in the right direction!