Go to Post Replay/video isnt a BAD idea, its just not a GOOD idea for FIRST. - Ashley Christine [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 18-02-2014, 09:35
DDSLoan96's Avatar
DDSLoan96 DDSLoan96 is offline
Jack of all trades
AKA: Danny
FRC #1468 (J-Birds)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Hicksville
Posts: 40
DDSLoan96 is an unknown quantity at this point
cRIO boots before Camera

We have been having an issue with the camera where the camera doesnt finish booting until after the cRIO does and it fills our driverstation log with errors because of this. Anything we can do to fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2014, 09:58
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: cRIO boots before Camera

Does the camera's slow start affect your robot in any other way?

Alex Brinister
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2014, 12:54
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: cRIO boots before Camera

I'm not 100% sure if this is your exact problem, but in reviewing my 2012 camera code, I noticed that I explicitly avoid getting an instance of the camera (i.e. connecting) in a constructor.

I use the following function to get a pointer to the camera whenever I want to use it:

Code:
AxisCamera *Camera::GetCamera()
{
    static AxisCamera *camera = (AxisCamera *) 0;

    if (camera == (AxisCamera *) 0)
    {
        AxisCamera &camRef = AxisCamera::GetInstance("10.24.74.11");
        camera = &camRef;
    }
    return camera;
}
This way, you don't try to connect to the camera until the first time you use it.
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


All times are GMT -5. The time now is 02:46.

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