![]() |
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 |
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?
|
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.
|
Re: How to use Axis Camera Servos in Java
Can you post your code?
|
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