-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Further improval of controls #42
Further improval of controls #42
Commits on Mar 22, 2023
-
Control: change is_readable/is_writable to is_writeonly/is_readonly.
These two methods were not well-thought. While a control that has the read-only flag set is certainly not writeable, a control with the write-only flag set could still be unwriteable because of being inactive. The original intention for these two methods was to check for the flags, so adjust their behaviour and naming accordingly.
Configuration menu - View commit details
-
Copy full SHA for 000696e - Browse repository at this point
Copy the full SHA 000696eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b798ed8 - Browse repository at this point
Copy the full SHA b798ed8View commit details -
Control: reimplement method is_writeable, with correct behaviour.
Before 000696e, a control was assumed (and reported by this method) to be writeable when the read-only was not set. However, such a control would still be unwriteable when being flagged as inactive, which was not taken into account before. In other words, is_writeable now checks that a control can *actually* be written to.
Configuration menu - View commit details
-
Copy full SHA for 6144213 - Browse repository at this point
Copy the full SHA 6144213View commit details
Commits on Mar 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b8d3a15 - Browse repository at this point
Copy the full SHA b8d3a15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88cabd5 - Browse repository at this point
Copy the full SHA 88cabd5View commit details -
Controls: add alternative constructor from_device.
This will be used later to facilitate instantiation of a Controls object with diverse Control sub-classes.
Configuration menu - View commit details
-
Copy full SHA for d5e9dde - Browse repository at this point
Copy the full SHA d5e9ddeView commit details
Commits on Mar 25, 2023
-
Remove stand-alone function config_name; the functionality has been m…
…oved into a method of class Control
Configuration menu - View commit details
-
Copy full SHA for f8629d9 - Browse repository at this point
Copy the full SHA f8629d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79fd14d - Browse repository at this point
Copy the full SHA 79fd14dView commit details
Commits on Mar 28, 2023
-
Begin implementation of inheritance-based class model for controls.
This commit covers the part up to LegacyControl, as discussed in #15. The upgrade path for existing code is: Use LegacyControl instead of Control for instantiations, and use either BaseControl or BaseSingleControl for isinstance() checks (see Controls).
Configuration menu - View commit details
-
Copy full SHA for 20a8cda - Browse repository at this point
Copy the full SHA 20a8cdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for dea5cbe - Browse repository at this point
Copy the full SHA dea5cbeView commit details
Commits on Apr 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5640d4e - Browse repository at this point
Copy the full SHA 5640d4eView commit details -
Add support for checking all currently defined control flags.
is_<flag> is working for many of the flags, but is weird for stuff like V4L2_CTRL_FLAG_HAS_PAYLOAD or V4L2_CTRL_FLAG_UPDATE. Switching to is_flagged_<flag> to check if a flag is set, e.g. is_flagged_has_payload, is still not perfect, but better.
Configuration menu - View commit details
-
Copy full SHA for 2b57f1c - Browse repository at this point
Copy the full SHA 2b57f1cView commit details
Commits on Apr 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2d68a2c - Browse repository at this point
Copy the full SHA 2d68a2cView commit details -
After default has been moved to BaseControl, it should be part BaseCo…
…ntrol's __repr__, too
Configuration menu - View commit details
-
Copy full SHA for 5580d4b - Browse repository at this point
Copy the full SHA 5580d4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 685acc2 - Browse repository at this point
Copy the full SHA 685acc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99d79b3 - Browse repository at this point
Copy the full SHA 99d79b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee38673 - Browse repository at this point
Copy the full SHA ee38673View commit details -
These checks need to be moved to BaseNumericControl, since BaseContro…
…l doesn't have the attributes minimum and maximum.
Configuration menu - View commit details
-
Copy full SHA for ff66c02 - Browse repository at this point
Copy the full SHA ff66c02View commit details -
Introduce LegacyControls as backward-compatible controls 'factory', w…
…hich is used by default.
Configuration menu - View commit details
-
Copy full SHA for 395f4ec - Browse repository at this point
Copy the full SHA 395f4ecView commit details
Commits on Apr 8, 2023
-
Controls: introduce a ControlType to class mapping, to support instan…
…tiation of different control class objects without a messy if/elif construct.
Configuration menu - View commit details
-
Copy full SHA for 877709c - Browse repository at this point
Copy the full SHA 877709cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed23474 - Browse repository at this point
Copy the full SHA ed23474View commit details -
BaseNumericControl: make clipping of written values to minimum/maximu…
…m optional (default: on)
Configuration menu - View commit details
-
Copy full SHA for 6c9532f - Browse repository at this point
Copy the full SHA 6c9532fView commit details -
BaseControl: value to be written should be converted to target type b…
…efore trying to mangle it
Configuration menu - View commit details
-
Copy full SHA for bd9dd8b - Browse repository at this point
Copy the full SHA bd9dd8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 608954e - Browse repository at this point
Copy the full SHA 608954eView commit details
Commits on Apr 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7e47ec0 - Browse repository at this point
Copy the full SHA 7e47ec0View commit details -
Initial implementation of class MenuControl.
This class inherits from UserDict and thus can be used like a dict to access the items defined for the menu. For the sake of this dict-like behaviour the MenuItem class is not used in MenuControl; the names of the menu items will be transformed straight to either string or integer, depending on the menu type. MenuItem is kept for now, but renamed to LegacyMenuItem to signal it should not be used except for legacy code.
Configuration menu - View commit details
-
Copy full SHA for 6e0f5f6 - Browse repository at this point
Copy the full SHA 6e0f5f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbac364 - Browse repository at this point
Copy the full SHA bbac364View commit details
Commits on Apr 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 832a4a2 - Browse repository at this point
Copy the full SHA 832a4a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2fc7ff - Browse repository at this point
Copy the full SHA d2fc7ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9392f16 - Browse repository at this point
Copy the full SHA 9392f16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43c33e7 - Browse repository at this point
Copy the full SHA 43c33e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d18bf00 - Browse repository at this point
Copy the full SHA d18bf00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 430d947 - Browse repository at this point
Copy the full SHA 430d947View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6aa811 - Browse repository at this point
Copy the full SHA d6aa811View commit details
Commits on Apr 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8e4ca97 - Browse repository at this point
Copy the full SHA 8e4ca97View commit details
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 10eadd4 - Browse repository at this point
Copy the full SHA 10eadd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62bef57 - Browse repository at this point
Copy the full SHA 62bef57View commit details
Commits on Apr 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d485978 - Browse repository at this point
Copy the full SHA d485978View commit details
Commits on Apr 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e910562 - Browse repository at this point
Copy the full SHA e910562View commit details -
Initial "implementation" of GenericControl. Use this now instead of L…
…egacyControl for control types not found in ctrl_type_map.
Configuration menu - View commit details
-
Copy full SHA for 22c17d9 - Browse repository at this point
Copy the full SHA 22c17d9View commit details
Commits on May 2, 2023
-
Reduce BaseControl to the bare minimum of control features, and move
the rest to the new derived class BaseMonoControl. The latter is more or less a reprise of BaseSingleControl, which had been removed in 5640d4e. It's similar but not identical, and used to prepare for the upcoming ButtonControl.
Configuration menu - View commit details
-
Copy full SHA for 654e47d - Browse repository at this point
Copy the full SHA 654e47dView commit details -
Initial implementation of ButtonControl. Not yet tested, since I have
no real device that provides a button control and trying vivid did not work (see #17).
Configuration menu - View commit details
-
Copy full SHA for da53ed6 - Browse repository at this point
Copy the full SHA da53ed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9d5f3a - Browse repository at this point
Copy the full SHA a9d5f3aView commit details
Commits on May 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 93fc9b3 - Browse repository at this point
Copy the full SHA 93fc9b3View commit details
Commits on May 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 67a6e3b - Browse repository at this point
Copy the full SHA 67a6e3bView commit details -
Update installation instructions for extra dependencies: OpenCV package
is named opencv-python; call pip as module, as suggested in the pip manual. Closes #22.
Configuration menu - View commit details
-
Copy full SHA for 398f9b3 - Browse repository at this point
Copy the full SHA 398f9b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a98df12 - Browse repository at this point
Copy the full SHA a98df12View commit details