|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Gimbal help!
If it zeros, that means it is at least sending signals to the servos. Are you sure though that you are sending signal to the right pins? The system automatically zeros all PWM outputs, coded or not.
|
|
#2
|
|||
|
|||
|
Re: Gimbal help!
I think its just code problems because when I try to control it using a control on the front panel it moves just fine
I think it is either the point between finding the backboard and moving the servos or something. is it possible to get the servo position through the servo or is there zero feedback from it? because I am trying to find the difference between the center of the screen and the center of the backboard and then I take the servo get angle and convert the pixels to degree aspects then add it to said angle. Am I approaching this completely wrong? |
|
#3
|
|||||
|
|||||
|
Re: Gimbal help!
The servo feedback is all internal to the device. It's reasonable to treat it as something that just goes where you tell it to. If you want to know the servo position, you can assume it's what you last commanded it to be.
When you open the Robot Main vi and click the "Run" arrow at the top of the window, you can open other block diagrams and place probes on the wires to see what value they have while the program runs. Do that to trace where your servo angle command is getting lost. |
|
#4
|
||||
|
||||
|
Re: Gimbal help!
probe the values, but do a quick sanity check first and make sure there are actually servos connected to the outputs you are writing to.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|