|
Post by WY Katie on Jun 19, 2017 13:59:44 GMT -7
How do we communicate with the raspberry pi servo mid-flight to alter the angle of the camera with respect to the ground? Anybody with experience doing this? Thanks!!
|
|
|
Post by David MSGC on Jun 19, 2017 14:19:26 GMT -7
From the home directory (/home/pi), the directory you are in when first logged in. Also denoted by ~ (tilde) ~ = /home/pi
cd bin/python/Single_Camera (so the entire path is /home/pi/bin/python/Single_Camera)
then the command is: python adjust_camera.py x where x is an integer from 0-10
It can use numbers smaller than zero and larger than 10 but it may have the camera housing in the frame of the picture. There are notes in the code that give the same instructions if you need a reference during flight.
|
|
|
Post by Joe_CWU on Jun 30, 2017 11:07:21 GMT -7
We are running in to couple of errors while trying this. First, no matter what number we put in the camera is only turning down. Is there a way to fix that? Also, if we try and adjust the angle while streaming we lose connection. Any ides?
Thanks, Joe
|
|
|
Post by Skylar MSGC on Jul 7, 2017 8:39:39 GMT -7
If you lose connection while adjusting the servo it probably means that the cable is being pulled by the servo. I would recommend double checking the flat ribbon cable on the camera to make sure that it is connected well. Otherwise you could end up damaging the cable from the servo pulling on it.
The camera should turn up at some point. The code says between 0 and 10, but if these are all facing down you could try putting in a value larger then 10 to see if it turns up. You probably need to recenter the camera housing on the servo to get it to look in the correct direction.
|
|