Go to Post I suspect the GDC is enjoying watching teams wrap their heads around this ranking algorithm.... and is probably a bit surprised that it has taken teams so long to clue in to the options this ranking system presents to them. - dtengineering [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 19-01-2012, 00:25
Lawlhwut Lawlhwut is offline
Registered User
None #2853
 
Join Date: Jan 2011
Location: Hawaii
Posts: 17
Lawlhwut is an unknown quantity at this point
Axis Camera help!

When declaring the axis camera in our program, what do we put in the paranthesis?

Code:
class RobotDemo : public SimpleRobot
{
RobotDrive myRobot;
AxisCamera axis;
Joystick stick;

public:
RobotDemo(void):
myRobot(1,2),
axis(???????????????????????????????)
stick(1)...
What do I put in the ????????????????????? And to take a picture, do I just need axis.GetInstance, axis.GetImage? We need the image for particle analysis.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2012, 01:10
scottbot95 scottbot95 is offline
Registered User
FRC #1388 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arroyo Grande, CA
Posts: 46
scottbot95 is an unknown quantity at this point
Re: Axis Camera help!

You cannot do it that way. When you need to access the camera you have something like this:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2012, 01:27
Lawlhwut Lawlhwut is offline
Registered User
None #2853
 
Join Date: Jan 2011
Location: Hawaii
Posts: 17
Lawlhwut is an unknown quantity at this point
Re: Axis Camera help!

Then how would I do functions with the camera? For instancec if I want to do WriteResolution(640,480) or GetImage()?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2012, 01:35
Lawlhwut Lawlhwut is offline
Registered User
None #2853
 
Join Date: Jan 2011
Location: Hawaii
Posts: 17
Lawlhwut is an unknown quantity at this point
Re: Axis Camera help!

Also, which header files do we use?
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2012, 01:35
scottbot95 scottbot95 is offline
Registered User
FRC #1388 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arroyo Grande, CA
Posts: 46
scottbot95 is an unknown quantity at this point
Re: Axis Camera help!

Code:
camera.WriteResolution(blah);
Image *image = camera.GetImage();
Make sure when getting an image you call IsFreshImage() first; it will save you some processing.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2012, 01:37
scottbot95 scottbot95 is offline
Registered User
FRC #1388 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arroyo Grande, CA
Posts: 46
scottbot95 is an unknown quantity at this point
Re: Axis Camera help!

So far, I haven't noticed anything we need that isn't included in WPILib.h
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 03:03.

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