Commit Graph
1 Commits
Author SHA1 Message Date
Joel KåbergandGitHub 55872d73d6 Read back zoom level after returning to preset (#25118)
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
* Read back zoom level after returning to preset

The camera is idle when the track ends, so motor_stopped is still set
after GotoPreset and the status loop meant to update the zoom level
never runs. The next track then starts from the previous track's zoom
level, and in absolute zooming mode its first move zooms back to it.
Clear motor_stopped first, as calibration does after its preset moves.

* Don't block maintenance on the preset status wait

If the camera stops responding when the track ends, get_camera_status
never sets motor_stopped and the wait after the preset move loops
forever. run() waits on camera_maintenance, so every other camera
stalls with it. Drop the wait and let the status check at the top of
maintenance read the zoom level back, once per pass.

* Don't send the stored zoom level on the initial absolute move

A track that starts before maintenance has read the zoom back from the
return preset still sees the previous track's level, and the initial
move sent it as an AbsoluteMove after pan/tilt. Zoom 0 skips the zoom
on the initial move, which is what it was meant to do, and the next
move works from the level read after pan/tilt.

* Drop the motor_stopped clear after returning to preset

The zoom = 0 change on the initial move fixes the stale zoom on its own. Clearing motor_stopped there made a track that starts mid-return have its first move refused and recorded with a start time of 0. The removed wait never polled, as motor_stopped is still set from the wait before the preset move.
2026-11-30 07:29:14 -06:00