Like many teams, we too are having trouble getting an image from the camera on the dashboard.
We have updated the driver station (we have the needle gage on the bottom right),
The cRIO has been imaged with v19.
We have updated LabView and have successfully run the Setup Axis Camera utility.
We can instantiate the camera and set the resolution and brightness.
However, whenever we try to execute the getImage() method on the instance of the AxisCamera object, we get the exception shown below.
2 Questions.
-
Is the video feed supposed to display in the dashboard once the getInstance is called?
-
Has anyone else seen/overcome the following exception?
[cRIO] edu.wpi.first.wpilibj.camera.AxisCameraException: No image available
[cRIO] at java.lang.Throwable.<init>(Throwable.java:88)
[cRIO] at java.lang.Throwable.<init>(Throwable.java:102)
[cRIO] at java.lang.Exception.<init>(Exception.java:53)
[cRIO] at edu.wpi.first.wpilibj.camera.AxisCameraException.<init>(AxisCameraException.java:20)
[cRIO] at edu.wpi.first.wpilibj.camera.AxisCamera.getImage(AxisCamera.java:257)
[cRIO] at edu.wpi.first.wpilibj.templates.Lucy.HandleImage(Lucy.java:140)
[cRIO] at edu.wpi.first.wpilibj.templates.Lucy.teleopPeriodic(Lucy.java:93)
[cRIO] at edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:179)
[cRIO] at edu.wpi.first.wpilibj.RobotBase.startApp(RobotBase.java:132)
[cRIO] at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(MIDletTunnelImpl.java:60)
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(MIDletMainWrapper.java:110)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
Thanks for your help.
Barry Sudduth
Team 2751