|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Good Switch For Autonomous Mode Select
just wanted to share this info. On our robot for the past few years we have been using a SCSI drive select switch. It digitally selects the decimal values from 0-9, giving us 10 modes in autonomous.
They are inexpensive, and are good for teaching binary math as they wire into 4 digital I/O ports and then do bit math to get the decimal modes. Here are some examples... goto here http://www.scsisource.com/scsi_enclosure_cables/ look for SCSI ID Selector Switch (0-15) w/selector cable $6.00 this one would do even more modes than 10 as I state above. wiring instructions are here... http://www.wetex.com/downloads/SCSI_ID.PDF good luck... Ken Leigh Team 811 controls Mentor |
|
#2
|
||||
|
||||
|
Re: Good Switch For Autonomous Mode Select
Cool idea, I actually have some old SCSI equipment with such selectors on board that I can steal. It's a lot easier than teaching the driver team binary!
Jake |
|
#3
|
|||||
|
|||||
|
Re: Good Switch For Autonomous Mode Select
We've used the joystick trigger to cycle through a number shown on the user byte on the OI. It's worked well enough, and the best part is that there's no extra hardware.
|
|
#4
|
|||||
|
|||||
|
Re: Good Switch For Autonomous Mode Select
We used similar switches. We got ours from Digikey. They are available in many varieties, from push-button to thumb-wheel, and sizes.
Unfortunately, we didn't mount them in the safest place, and they got damaged at out last regional, so we had to order more, and have to install them (in a safer location) at our next regional. |
|
#5
|
|||
|
|||
|
Re: Good Switch For Autonomous Mode Select
Our autonomous mode was programmed using a self servicing command structure. We wanted to have full access to the field at the click of a button, but did not want go through the pain that is trigonometry on the PIC processor. We decided we wanted to use a pocket PC based map of the field to create way point data. Also, we wanted to get rid of most of the processing overhead on the handheld's processor, leaving us free to run a variety of sensors and a robot waypoint navigation system without the trouble of a co-processor.
To do this, we created a map of the field in Visual Basic with the coordinate system being the amount of encoder ticks it would take our robot to traverse from one side to the other. We are able to draw waypoints, and insert actions at each waypoint (shift gears, auto track corner goal, spit balls, suck in balls, change speed, change orientation.. etc) The VB program then made a list of commands, which were stored as base 255 numbers in the eeprom on the RC. Our RC program was made to accept incoming serial data and throw it in the eeprom. We are able to select which autonomous mode we would like to use from a serial LCD on the robot, as well as access full diagnostics, such as feedback on all inputs and outputs. This has helped us tremendously and makes preparing the robot for matches ten times easier. |
|
#6
|
|||||
|
|||||
|
Re: Good Switch For Autonomous Mode Select
Quote:
|
|
#7
|
||||
|
||||
|
Re: Good Switch For Autonomous Mode Select
Can anyone elaborate on using the joystick trigger to cycle through the user bytes on the OI to change the auton. mode? Thanks.
|
|
#8
|
|||
|
|||
|
Re: Good Switch For Autonomous Mode Select
Quote:
both user_routines and user_routines_fast. Use this variable to "count" the number of trigger clicks while the robot is disabled, during the setup by the students, and display this on the user mode display. Refer to the section in the default code that would otherwise display the backup battery voltage. With the selected number, 0 through 255 (or some smaller range) stored in the external variable, you can then use it to select the autonomous mode when this code is entered. This is not a bad idea, but we have other uses for this display... |
|
#9
|
||||
|
||||
|
Re: Good Switch For Autonomous Mode Select
How do we display custom variables on the OI 4 digit display?
Also, where and how can you declare a global variable that is accessible to user_routines.c and user_routines_fast.c? Last edited by blue_crew : 15-03-2006 at 12:59. |
|
#10
|
|||||
|
|||||
|
Re: Good Switch For Autonomous Mode Select
Quote:
I personally use OI rotary switches since I always have plenty of OI analog inputs left. Last edited by The Lucas : 15-03-2006 at 13:10. |
|
#11
|
||||
|
||||
|
Re: Good Switch For Autonomous Mode Select
Another idea that we are using this year is a 12 pole DIP switch that easily allows us to use thousands of different autonomous codes. Currently, we're only using a few hundred, and I wrote them all in an hour, but I'll leave it up to the coders to figure that one out.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TTL port to a serial port on a demo board | ImmortalAres | Programming | 16 | 09-07-2005 23:44 |
| LEDs in switch box. | ZZII 527 | Electrical | 5 | 06-03-2004 19:39 |
| Need help with 255 Variable | Joseph F | Programming | 18 | 26-02-2002 14:49 |