BUG: Pan & Tilt broken
The pan & tilt command is broken:
If you set the pan value to other than 0, the camera pans but tilt value is ignored.
If you specify tilt before pan, ie tilt=10&pan=0, the camera pans instead of tilts.
Test case
Following should cause the camera tilt
http://localhost:8080/0/track/set?tilt=10&pan=0
Following should cause the camera pan & tilt
http://localhost:8080/0/track/set?pan=10&tilt=10
Environment
Motion version: |
3.2.4 |
ffmpeg version: |
0.4.9-pre1 |
Shared libraries: |
ffmpeg |
Server OS: |
Mandriva Linux, Kernel 2.4.12 |
--
TWikiGuest - 22 Dec 2005
Follow up
Yes , there's some problems with http web control and track managemente , i'll review it deeply to fix it.
Thanks to pointing it out
--
AngelCarpintero - 22 Dec 2005
Fix record
I've attached a patch against daily snaphot motion-20051223-082332 ( but can be applied to motion-3.2.4 too).
Changelog
- Get the values from track functions (track_move, track_center) and assign to cnt[thread]->moved to avoid motion detection for some frames.
- Fix the problem with the order of parameters x,y and pan,tilt .
- Fix the problem with pan,tilt adding a small delay between calls to track_move.
--
AngelCarpintero - 23 Dec 2005