Log in

View Full Version : Rotata Camera image and Timer usage


whatabouteve
21-02-2010, 17:37
these are the only 2 issues left on the entire robot code.

1 we cannot seem to be able to rotate the image of the camera 90 degrees on the dashboard.

the other issue is that we cannot seem to make the timer work. and after we added the timer code that compiled we got watchdog errors that have never occured before.

can anyone help with this.

Greg McKaskle
21-02-2010, 19:09
I see a subVI called IMAQ Rotate. If you insert that on your dashboard it seems like it'd do the trick.

Is is in the Image Manipulation palette, or you can search the palettes.

The watchdog is probably because you are delaying the completion of your teleop, thus the watchdog is not being fed often enough.

Greg McKaskle

whatabouteve
21-02-2010, 19:16
this is C++ you're talking about? because it sounds like Labview

Zme
21-02-2010, 21:52
he is talking about the dashboard, which is done in labview, however i do seem to recall a setting for the axis camera that rotated the image, i will see if i can find it for you

Zme

EDIT: i just checked and that parameter only allows rotations of 0 and 180 which is a little ridiculous if you ask me but thats life i guess

Greg McKaskle
21-02-2010, 22:25
The API from Axis has four rotations, (0, 90, 180, and 270), but the Axis 206 only supports (0 and 180). IMAQ Rotate takes a floating point number of degrees.

Greg McKaskle

Zme
21-02-2010, 22:27
still seems a little odd but ok, thanks for the explanation

Greg McKaskle
21-02-2010, 22:43
Perhaps the M1011 supports the other angles. I couldn't find the parameters list on their web site, but web server in the camera can provide a list of the parameters and valid values. It is a little hard to find, but if someone wants to log in and poke around.

Greg McKaskle

mandrews281
21-02-2010, 23:58
We've seen several watchdog issues this year, but have always tracked them down to problems in our code (mis-connected sensors that hang when initialized, wait() calls in IterativeRobot, etc.). You must not be using the Timer correctly. It works (we are using it at least). Perhaps some sample code might help if you don't find it yourself.

whatabouteve
22-02-2010, 06:07
thanks for the info on the camera. We've ha a hard time finding timer code because it is probably so simple. we're chunking up the code and rerunning all the stuff in it.
one baby step at a time.