|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Programming tricks (and former trade secrets)
Quote:
We #defined all the pwms to things like pwmL, pwmR, pwmA, etc. The worst was when we needed to use two motors to control the wheels on the left and right. pwmL is #defined as (pwm05=pwm06) |
|
#2
|
||||
|
||||
|
Re: Programming tricks (and former trade secrets)
We did similar to the above quote of meatmanek, but scaled it from -100 to +100....lost some resolution, but it made calculations much more simple. And although we had a tank drive, we set the left thumbstick on our Xbox controller to the throttle, and the right thumbstick controlled steering. We did that after picking drivers, as one of them loves Halo and figured it would be more easy for him to control.
For our elevator, the motor that acted as the winch was a small CIM with a BaneBots gearhead/encoder on it, so we used the encoder to have set rack positions (high/med/low) that would be assigned to a single button on the Guitar Hero controller. We then had a limit switch at the bottom (load position) that would reset the encoder count to 0 to account for slight variations that would occur....obviously not the best method, but it was accurate to about an inch, so good enough since we lower the tube onto the rack to score. |
|
#3
|
|||
|
|||
|
Re: Programming tricks (and former trade secrets)
I also wrote sscanf but haven't gotten a chance to use it yet. My stupid state machine based input code works well enough, so I haven't bothered to change the code to use sscanf yet.
It compiles, and it works when I test it on my linux box. Only has %c, %u, and %d at the moment, but it should be pretty easy for someone to add other stuff to it. http://meatmanek.net/scanf.c |
|
#4
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
I created this: http://www.falconir.com/products.php
After calibrating once at our home practice field, it was literally "set it and forget it". We did not have to recalibrate once at either of the two regionals! It even handled a dim target light on the practice field. Then we changed our arms out and autonomous broke permanently ![]() |
|
#5
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
Quote:
My little bit: stay SIMPLE! And make sure the basics are done first! Autonomous mode does no good if the arm control module doesn't work...I should know, I just got it done yesterday during our last build window before Waterloo. I know I can do much better next year. JBot |
|
#6
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
Quote:
I did not make this open source as I have been working on the algorithms for the past 2 1/2 years, and would like to make a little bit of profit so that I can fund my other vision systems research. It is hard to continue researching with no funds available to test ideas with! Besides, it is written for an FPGA, an FPGA which is pretty much filled up by the code. (1 million logic cells, all in use! )The OV7620 camera module itself is not a bad module for this kind of work. I have yet to see this distortion you speak of, and I have had the oppertunity to work with 6 different OV7620 modules. Out of curiosity, did you plug both of them (one at a time, of course ) into the same CMUCam board or different CMUCam boards when you noticed the distortion? |
|
#7
|
||||
|
||||
|
Re: Programming tricks (and former trade secrets)
Quote:
Again I don't mean to be rude, and if I'd made a mistake in my conclusions, please forgive me, your site is somewhat sparse on details, I'll happily stand corrected if I am wrong. |
|
#8
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
Quote:
Would someone be able to direct me to a place that can handle the manufacturing and assembly of circuit boards that can handle BGA devices in small runs? At this point, I have almost zero capital, so I cannot invest in a run of 2000 boards and hope to sell them later. I kind of rushed this product out here to "test the waters" and see if there would be any interest in a system like this. The actual system itself is very mature and stable, I am having some difficulty with the peripheral stuff, like sample IFI drivers. If you click on the "Add to Cart" link, you will see that I am not actually offering this for sale to the general public yet. (I should probably make that more clear.) What I would like is for one or two teams to be willing to test this, make sure that the manual is clear and such, that I am not overpromising, etc. before making this generally available and investing in a new board design. You were not rude; this is my first time attempting to bring something to market and as such it is a learning experience for me. I appreciate your criticism and feel free to poke as many holes in my logic above as necessary. Maybe we could discuss this further via the PM system so as not to tie up this thread? Thanks again. ![]() |
|
#9
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Programming tricks (and former trade secrets)
Quote:
).It is hard to go up against an open-source project, though... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Former FIRST student and mentor dies in a tragic rocket attack in Iraq today. | Munkaboo | General Forum | 48 | 19-04-2005 12:21 |
| Off-season competetions and former teams | Venkatesh | Off-Season Events | 5 | 10-12-2004 17:23 |
| Harry Potter and the Chamber of Secrets | Ryan Dognaux | Chit-Chat | 33 | 01-12-2002 19:57 |
| scouting tips and tricks | Rick | Scouting | 1 | 08-01-2002 00:52 |