Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   How to use Axis Camera Servos in Java (http://www.chiefdelphi.com/forums/showthread.php?t=126265)

graham.robots 11-02-2014 16:59

How to use Axis Camera Servos in Java
 
Hello,
We are having a problem moving the camera servos with the Axis camera. They are plugged into the digital sidecar through PWM cables, and we have the jumpers installed. We have them declared through the Servo class, however, they still aren't moving with both the setAngle() and set() methods. What are we missing?
Thanks,
Team #4024

Joe Ross 11-02-2014 17:02

Re: How to use Axis Camera Servos in Java
 
If you remove the DB-37 cable from the digital sidecar, are all 3 power LEDs lit? Are you enabling the robot on the driver station before trying to move the servos?

graham.robots 11-02-2014 17:39

Re: How to use Axis Camera Servos in Java
 
Yes, all three green LEDs are on with the DB-37 pulled. And yes, we are running it with the driver station enabled.

Joe Ross 11-02-2014 17:52

Re: How to use Axis Camera Servos in Java
 
Can you post your code?

graham.robots 11-02-2014 18:11

Re: How to use Axis Camera Servos in Java
 
//Declaration
Servo cameray = new Servo(7);

//Implementation
if (aButton.get() && !yButton.get())
{
//Tried both of these
//cameray.set(1);
cameray.setAngle(180);
}
else
{
//cameray.set(0);
cameray.setAngle(90);
}


All times are GMT -5. The time now is 09:33.

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