Go to Post I may be right or wrong but I’ll be happily senile doing it. - ebarker [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 10-02-2010, 00:13
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Camera Instance Problem

We are working on trying to get the Camera to work in Windriver C++ I have gone through and it seems our problem is different then others.

DS Version: 2010.01.06.00 (which is update 2 I can see the Gyro Dial on dashboard)
cRIO Image: C-2010_v19

I have included #include "Vision/AxisCamera.h" at the beginning of code.
Followed the instructions on page 58 of 2-2010FRCControl%20System-Getting%20Started-Rev-0.7.pdf

Our problem is when we make an instance of AxisCamera using the following code we get communication to the driver station but says "No Robot Code". If I comment out the GetInstance() line it everything runs perfect.
Code:
		//printf("Getting camera instance\n");
		AxisCamera &camera = AxisCamera::GetInstance();
		//printf("Setting camera parameters\n");
		//camera.WriteResolution(AxisCamera::kResolution_320x240);
		//camera.WriteCompression(20);
		//camera.WriteBrightness(0);
		GetWatchdog().SetEnabled(true);
		while (IsOperatorControl())
		{
			GetWatchdog().Feed();
Note: I have no other vision code in the code except for what is shown and the include statement at beginning.
We have updated Windriver to "C/C++ Team Update 4.2 2/8/2010"
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
Reply With Quote
 


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 problem ijk90825 Technical Discussion 1 28-01-2009 01:35
Instance relay Team_486 Programming 0 28-03-2007 09:56
Camera Problem ta1234 Programming 1 29-01-2007 09:38
camera problem miscar Programming 2 23-01-2005 12:06
Camera Problem n_0163 Electrical 3 14-01-2005 21:10


All times are GMT -5. The time now is 11: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