|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: HD-3000 camera has wasted many hours
Quote:
Quote:
OP -- The way our team solved the problem was by plugging the LifeCam into a Raspberry Pi 2, where we were able to configure its settings live using v4l2. We, however, didn't stream that camera to the dashboard, instead choosing to keep the stream on the Pi for vision processing. |
|
#2
|
||||
|
||||
|
Re: HD-3000 camera has wasted many hours
Quote:
1. Restarted robot code from dashboard - Settings lost 2. Reset settings, power cycled robot, loaded new code - Settings lost 3. Reset settings, plugged back into rio without power cycle - settings lost 4. Did not reset settings, restarted rio from dashboard - settings worked (note, these were settings from before trial 3 that didn't show after trial 3) 5. Restart robot code from dashboard - settings worked 6. Restart RIO from button on rio - settings worked 7. Load new code - settings worked 8. Hard power cycle (turn power switch off/on) - settings worked If anyone has example code using USBCamera successfully, it would be greatly appreciated. |
|
#3
|
||||
|
||||
|
Re: HD-3000 camera has wasted many hours
We've eliminated these issues by always writing the camera settings to the camera when the code starts.
We do this with a csv file that has a list of all the attributes that we care about stored on the roboRIO. When the code loads we loop through each setting and set the camera accordingly. The list of attributes and the list for the csv I have saved in a google doc here. Each tab has some different info, the 'optimal settings' I listed is for the vision tracking and not good for viewing. The 'Values for CSV' tab is a copy of the actual csv file that we send to the robot. I've attached the LabVIEW code we used, I do not know the equivalent IMAQ function, but it may give you an idea. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|