Skip to content

Additional Features: Tiny 3 Support, Zoom, Pan/Tilt, and Presets - #170

Open
ImaginaryResources wants to merge 5 commits into
OpenFoxes:mainfrom
ImaginaryResources:pan-tilt
Open

ImaginaryResources wants to merge 5 commits into
OpenFoxes:mainfrom
ImaginaryResources:pan-tilt

Conversation

@ImaginaryResources

Copy link
Copy Markdown

This PR adds additional features:

  • Support for Tiny 3
  • Adds more controls for Zoom, Pan, and Tilt via the GUI and CLI
  • Save more than 3 presets by using a local file

Disclaimer: AI was used, but I've been using this build for months without issue and looked through the code. I mainly just use the CLI.

mikkovedru added a commit to mikkovedru/Tiny4Linux that referenced this pull request Oct 22, 2026
Import the camera controls and named presets from PR OpenFoxes#170, while preserving its five original source commits. The GUI and CLI can control pan, tilt, and zoom, and share local presets in the user configuration directory.

The original V4L2 reads returned untouched copies instead of the kernel response. Keep the readback repair and its regression tests with this feature. Use reported ranges, disable tracking for manual pan and tilt, and retain Camera::new(&str) and Tiny 4K dispatch when combining the two camera PRs.

Preset writes use the user configuration directory and replace files by rename. Save and delete reject corrupt existing JSON instead of overwriting it. The GUI queries the camera interface when saving, and handles control and file errors without panicking. V4L2 position readback can still be cached.

Documentation for the controls and preset storage belongs to this integration. Tiny 3 hardware and control writes were not exercised locally.

Tests: Built the CLI and GUI with all features and the locked dependencies. The existing test suite passed (117 tests). Regression tests cover nonzero ioctl responses, ioctl failures, preset paths, and preservation of corrupt preset files. Read-only PTZ queries on the connected Tiny 2 matched v4l2-ctl in the original validation.

Original repository: https://github.com/OpenFoxes/Tiny4Linux
Original PR OpenFoxes#170: OpenFoxes#170
Published integration before this local rewrite: 137c3ef
Original author: https://github.com/ImaginaryResources
Original commit: OpenFoxes@c9b798d
Original commit: OpenFoxes@0d07ddd
Original commit: OpenFoxes@42ab1df
Original commit: OpenFoxes@876e562
Original commit: OpenFoxes@d334ad7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant