View Single Post
  #5   Spotlight this post!  
Unread 22-03-2004, 14:13
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
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!!!