
09-04-2014, 19:03
|
 |
 |
Taking a year (mostly) off
 FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
|
|
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
|
|
|
Re: Team 254 Presents: CheesyVision
Quote:
Originally Posted by Jared
This is really cool. We were planning on using the kinect, but we haven't had spectacular results in testing when we try it with people walking around in the background.
After playing around with it, I found it really useful to be able to lock the calibration color value so that I could hold a green index card in front of the calibration square, save that calibration value, then use both hands to hold up two cards in the boxes so that I can drop one hand out of the way to signal.
To add the lock-
above the while loop
after the statement in the while loop beginning with cal, left, right
Code:
if locked == 1:
cal = lastCal
lastCal = cal
at the bottom where the keys are checked
Code:
elif key == ord('l'):
locked = 1
elif key == ord('u'):
locked = 0
Pressing l locks the current calibration value, and u resets it to normal.
|
This is in fact how our original prototype worked, but we switched to continuous on-line calibration because we found that bumping the laptop could throw things off.
|