![]() |
Servo Camera Example Servos don't work
When I run the servo camera example, it works, except for the servos. It tracks and shows the servos turning on the laptop but the servos don't actually move. They are plugged into pwm1 and 2 and are shorted for servo output. The dsc is in port 4.
Any ideas why the servos aren't moving? thanks |
Re: Servo Camera Example Servos don't work
Does your DSC have power (all 3 power LEDs near the power input connector)? What's the status of the RSL (Robot Signal Light)? Is your robot enabled and in the proper mode?
Russ |
Re: Servo Camera Example Servos don't work
Yes it does.
Wierd thing is when I do another frc project and tell the servo to go to the position of a control, it works fine. It just wont work with the camera example. I have tried turning off the smoothing also with no effect. |
Re: Servo Camera Example Servos don't work
Should I be able to just run the examples as is from the examples folder, or do I have to put them inside a robot project? Do I have to change some settings on the DS?
Help?...:confused: Has anyone else experienced similar problems? I actually haven't had an example work yet. |
Re: Servo Camera Example Servos don't work
Did you change the IP address in the project? If not, you need to set it to communicate with the cRIO. If you did, I'm not sure what the problem is.
|
Re: Servo Camera Example Servos don't work
LabVIEW or C++?
If it is LabVIEW, find where the example is controlling the servos and replace it with a control. Then you can easily command them to move. If they move, it is the example code's fault somewhere in deciding where to go. Otherwise, it may be wiring (which you seem to have disproven), the watchdog, opening the servo reference, communication with the DS, etc... Also, try highlight execution mode. |
Re: Servo Camera Example Servos don't work
Sorry for the late update, But I did get it working. The labview example didn't have the watchdog. Adding the watchdog fixed the problem. I found my answer on the FIRST forums. Thanks.
|
Re: Servo Camera Example Servos don't work
Quick question. So I have been going about adapting the Two Color Servo Camera example... But where exactly is the ServoCamera.vi example everyone is mentioning? I am not able to find it anywhere :confused:
|
Re: Servo Camera Example Servos don't work
Quote:
|
Re: Servo Camera Example Servos don't work
Quote:
Point being, if you opened up the code and it did not work until you added user watchdog VIs to it... you are using the wrong version of LabVIEW. Update your software: http://www.usfirst.org/community/frc....aspx?id=10934 |
Re: Servo Camera Example Servos don't work
You can get it here: http://usfirst.org/community/frc/content.aspx?id=10934
(Look in software updates, it's the second from bottom I think...) alternatively, the direct link http://joule.ni.com/nidu/cds/view/p/lang/en/id/1215 for LV http://first.wpi.edu/FRC/frcupdates.html for C++ |
| All times are GMT -5. The time now is 05:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi