Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   GRIP Code Not Working on RoboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=153756)

randy_pham 16-01-2017 12:56

GRIP Code Not Working on RoboRIO
 
Whenever we turn on the robot, the vision code from GRIP doesn't work. we were wondering if it has something to do with the RoboRIO or the camera (Microsoft Lifecam HD 3000). The USB camera does feed into the Dashboard though, so we can see the image, it just doesn't recognize anything from GRIP, like contours.

http://compass.microsoft.com/assets/...cc_2_large.jpg

Here's the code we used to put the GRIP info on the dashboard, but everything is 0.

Code:

SmartDashboard.putNumber("Contour1 CenterX", auto.vision.GetContour1CenterX());
                SmartDashboard.putNumber("Contour1 CenterY", auto.vision.GetContour1CenterY());
                SmartDashboard.putNumber("Contour1 Height", auto.vision.GetContour1Height());
                SmartDashboard.putNumber("Contour2 CenterX", auto.vision.GetContour2CenterX());
                SmartDashboard.putNumber("Contour2 CenterY", auto.vision.GetContour2CenterY());
                SmartDashboard.putNumber("Contour2 Height", auto.vision.GetContour2Height());


AustinShalit 16-01-2017 13:40

Re: GRIP Code Not Working on RoboRIO
 
Can you please post (or PM) your entire program? You are not doing anything wrong in the code you posted.


All times are GMT -5. The time now is 21:34.

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