Log in

View Full Version : Java, Camera, Watchdog...


AlftanSr
19-02-2010, 09:46
As if there weren't enough camera/java issues on this forum already, I have a question.

First off, I should add that we're using the DefaultCodeProject, and just edited it to our needs.

Our code works fine, so we decided it was time to bring in the camera. In our constructor, we added:

camera = AxisCamera.getInstance();

When we deployed that to the robot, our robot would turn on and off and on and off, while our driver station was displaying either 'Teleop enabled' or 'Watchdog not fed' messages.

We commented out the one line of camera code, and the robot worked fine again.

What's the deal?????????????

As a side note, we tried loading the CirclTrackerDemo project, but didn't get any camera on the dashboard. But at least the Watchdog was happy! Unlike me...

sp33chy
19-02-2010, 12:11
Are you feeding the watchdog enough?

Also I can't get camera to work at all even with the CircleTrackerDemo so we are in the same boat on that regard.

AlftanSr
19-02-2010, 12:17
I tried making every other line of code to be watchdog.feed, but it was still hungry.

It's something with the camera. When I comment out the camera code, the camera = axiscamera.getinstance in the constructor, the watchdog gets hungry.

chris janney
20-02-2010, 15:46
hey ours isnt working as well. any advice?

adamdb
21-02-2010, 12:30
I think we are having a similar or possibly related issue. I started this thread about it. http://www.chiefdelphi.com/forums/showthread.php?t=83057

Ours manifests itself as the motors turning off very briefly when they should remain running.

Daniel Jones
22-02-2010, 23:18
Does your camera have the administrator account set to username FRC and password FRC?

AlftanSr
23-02-2010, 08:33
Yes it does. The camera works with Labview