|
Re: Programming Toggle Swiches
Thanks Mike I think we managed to get that code made but I don't think it will quite work with the system we have.
We will have three switches with on/ off positions that will controll three different autonomous modes. The problem is that we are not sure how to connect the switches to the code. We need the code to recieve the position of all the switches form DIO 3-5. We tried to use the select but said that we were using the wrong type of input for "S", but it is the same concept. If button one is on, and others off, then run autonomous for feild section one. If button two on, and others off, then run autonomous for feild section two. If button 3 on and others off, then run autonomous for reild section 3.
Could anyone give me some tips, we are kind off hitting a wall.
|