|
Re: Line Tracking Photoswitch Info and Demo Video
I would start out by making a handwritten flow chart saying what you want it to do when each sensor is triggered. For example, when the left sensor is triggered, make it go right, and when the right sensor is triggered, go left. When neither are triggered, go straight.
Just use nested case statements and use the DIO ins to be the input for the case statements
Ethan
|