Go to Post Have no fear, ancient and brilliant coaches of yore were consulted. - JamesCH95 [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 01-02-2011, 19:11
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Camera Problem

This year my team members wan to be able to use the camera on our robot. So I followed the steps to set up the users accounts and I made a code I'm not sure if that is he problem but when I downloaded the code I got no feedback on the dashboard. I do not know what I did wrong I updated the cRio, FRC tools, the Driverstation, and windriver but still the same problem. The code I have for it is:

Code:
#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"

class:
AxisCamera *camera;

public:
ds = DriverStation::GetInstance();


operator control:
        HSLImage image;     //Creates an image
        AxisCamera &camera = AxisCamera::GetInstance();
      camera.WriteResolution(AxisCamera::kResolution_320x240);
      camera.WriteCompression(20);
      camera.WriteBrightness(0);
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2011, 22:19
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Camera Problem

Quote:
Originally Posted by krudeboy51 View Post
Code:
#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"
You shouldn't need to include these two headers if your Workbench and libraries are fully up to date, just WPILib.h.

Have you configured your AxisCamera as per the manual?
http://www.usfirst.org/uploadedFiles...our_Camera.pdf
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2011, 08:33
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Camera Problem

We finally got our working thanks to kind people on here. We had ours mounted on a piece of lexan that was over the reset button and it was getting interrmittenly pressed. Make sure the button is clears the mounting.

Also use a crossover cable between the camera and the CRIO port 2.
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2011, 10:01
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Camera Problem

Quote:
Originally Posted by basicxman View Post
You shouldn't need to include these two headers if your Workbench and libraries are fully up to date, just WPILib.h.

Have you configured your AxisCamera as per the manual?
http://www.usfirst.org/uploadedFiles...our_Camera.pdf
I thought the problem was that I did not have those headers in, I inserted them in to the code to see if it would work, and I have followed he steps in the manual step by step and still nothing.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2011, 15:04
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Camera Problem

Its working now thanks for your help, the problem was the password for the FRC account................. I think!
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:37.

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