|
Re: counting digital input
Thanks CrashZero!!!
So my last question is how to I put a switch on my digital inputs so that I have one that turns left and one that turns right etc. I imagine it is some sort of If statement but I dont know how to put all the brackets, parenthesis etc
If digitalinput15=0 then autonomous_1
else digital input16=0 then autonomous_2
else end
something like this?
and do i put the counter in each automous module?
each of my autonomous modes has three states, forwardstate
turnstate and forwardshortstate. How do I group these together with regards to brackets, parenthesis into autonomous_1 and autonomous_2?
thanks again!!!
|