|
Re: Question about switching autonomous modes
We would really need to know more about what your switches are. In general, switches can be hooked to either the analog or digital ports, depending on what you are trying to get out of them.
If you just want an on/off signal (in terms of is each automode on or off), you can hook it to either. Then what you get into the controller (and read in in the code) for the digital ones are 0 or 1 as you mention, and for analog switches you will read in 0 or 255. If you hook the analog switch to the analog port, you will read in a range 0 to 255.
Make sure your code reads in for those switches, and then you can use the input from those switches to control your automode in the section defined in the code for automode (FIRST commented it as such, I dont have the code in front of me, so I dont remember which one it is).
Hope that helps!
|