Motion - Bug Report 2005x 12x 22x 122649

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 smile

-- 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
Topic revision: r5 - 20 Oct 2006, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.