|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Camera angle - interesting question
This question had been asked but hadn't been answered.
How I can retrieve the camera tilt angle without using the parameter of the blob size? I am gonn'a find the distance from the goal with the sin of the angle. Can anyone please answer this question specifically ? Thanks. |
|
#2
|
|||
|
|||
|
Re: Camera angle - interesting question
from the terminal.c:
Code:
// pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step
printf(" Pan Angle (degrees) = %d\r\n", (((int)PAN_SERVO - 124) * 65)/124);
// tilt angle = ((current tilt PWM) - (tilt center PWM)) * degrees/tilt PWM step
printf("Tilt Angle (degrees) = %d\r\n", (((int)TILT_SERVO - 144) * 25)/50);
|
|
#3
|
|||
|
|||
|
Re: Camera angle - interesting question
I didnt understand only this part :
* degrees/tilt PWM step |
|
#4
|
|||||
|
|||||
|
Re: Camera angle - interesting question
Quote:
basically degrees/PWM step is the number of degrees per rotation of the servo from its midpoint to either the max or min value of the servo. If you need more help, then PM me with your ICQ number and I'll be happy to help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What information can we access from the camera? | Total Meltdown | Programming | 37 | 01-02-2006 11:24 |
| For anyone who doesn't get the camera code..... | Jake M | Programming | 8 | 16-01-2006 18:56 |
| Camera Calibration | organgtool | Programming | 0 | 11-01-2006 23:56 |
| Camera Question | fred | Control System | 3 | 13-02-2005 14:25 |
| Using Base 36 "Compression" For Easier Scouting and Other Interesting Tidbits | Adrian Wong | Rules/Strategy | 9 | 21-09-2001 20:28 |