Go to Post what is it exactly that makes people like Dave Lavery more admirable than the video store clerk down the street? - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 17:37
whatabouteve whatabouteve is offline
Registered User
AKA: Dean Keithly
FRC #0245 (Adambots)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Rochester Hills,MI
Posts: 45
whatabouteve is an unknown quantity at this point
Rotata Camera image and Timer usage

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.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 19:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Rotata Camera image and Timer usage

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
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2010, 19:16
whatabouteve whatabouteve is offline
Registered User
AKA: Dean Keithly
FRC #0245 (Adambots)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Rochester Hills,MI
Posts: 45
whatabouteve is an unknown quantity at this point
Re: Rotata Camera image and Timer usage

this is C++ you're talking about? because it sounds like Labview
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2010, 21:52
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Rotata Camera image and Timer usage

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

Last edited by Zme : 21-02-2010 at 21:57.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2010, 22:25
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Rotata Camera image and Timer usage

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
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2010, 22:27
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Rotata Camera image and Timer usage

still seems a little odd but ok, thanks for the explanation
Reply With Quote
  #7   Spotlight this post!  
Unread 21-02-2010, 22:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Rotata Camera image and Timer usage

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
Reply With Quote
  #8   Spotlight this post!  
Unread 21-02-2010, 23:58
mandrews281 mandrews281 is offline
Registered User
FRC #0281
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Greenville SC
Posts: 83
mandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to behold
Re: Rotata Camera image and Timer usage

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.
__________________
Michael Andrews
Team #281 Programming Mentor
Reply With Quote
  #9   Spotlight this post!  
Unread 22-02-2010, 06:07
whatabouteve whatabouteve is offline
Registered User
AKA: Dean Keithly
FRC #0245 (Adambots)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Rochester Hills,MI
Posts: 45
whatabouteve is an unknown quantity at this point
Re: Rotata Camera image and Timer usage

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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera ROI Usage? buddyb C/C++ 1 06-02-2010 20:19
Timer vi's and Watchdog Rafael Vasquez Programming 1 28-01-2010 18:38
Camera Usage Jaime65 Technical Discussion 5 02-02-2007 21:39
EasyC Timer and Gyro questions TubaMorg Programming 11 09-02-2006 21:19
Timer Interrupt 1 and the IR tracker Mr. Lim Programming 0 25-01-2004 22:53


All times are GMT -5. The time now is 03:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi