Browse Source
Target-driven moves of deviceNodePTZCamControl (AbsoluteMove) and deviceNodePresetCamControl (preset for the ROI) both end in CAM_WS_WAIT_ONPOS, which waits for the end of the move and then broadcasts EVT_CAMERA_ON_POSITION (EVT_CLASS_CAMERA_CTRL). - AbsoluteMove: with video output enabled (m_bSkeepPositioningWait) the event was broadcast right after the command, before the camera moved. It now always goes through CAM_WS_WAIT_ONPOS, like the preset path. - New m_bNoMoveDoneReport: set when the protocol cannot report the end of a move (waitMoveIsDone() returns false). Then a fixed CAM_MOVE_FIXED_WAIT_MS (3 s) wait is used before the event. Before, the same failure set m_bSkeepPositioningWait, which made every later AbsoluteMove broadcast the event immediately. Reset when the protocol is (re)created. - protocolPTZ_ONVIF::goPreset: forget the last AbsoluteMove target so waitMoveIsDone() cannot end early by comparing with it. Homing, init go-home and web/IR/wiper presets are unchanged (no event). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16pull/12/head
3 changed files with 20 additions and 43 deletions
Loading…
Reference in new issue