Release v0.11.4#114
Merged
Merged
Conversation
- Introduced `pause_before_capture_ms` setting to allow configurable delays before photo capture. - Enhanced scan logic to detect cancellation before and during the pause. - Updated schema to include the new pause setting with validation.
…nge validation - Updated `focus_range` type in `ScanSetting` to use `Annotated` for clearer and more reusable validation constraints. - Replaced `confloat` with the `FocusValue` type alias for focus range fields.
…narios - Added tests for `pause_before_capture_ms` behavior, including handling of delay, cancellation, and resume scenarios. - Improved test coverage for photo capture logic during cancellation. - Verified default pause setting for legacy scan configurations.
…lt phi constraints - Added new tests for `get_constrained_path` to validate behavior for fixed theta and phi constraints, as well as fully fixed positions. - Updated existing tests to reflect default `min_phi` and `max_phi` values. - Adjusted validation logic to handle equal theta/phi bounds and default values. - Enhanced path generation to account for fully constrained positions and edge cases.
… handling - Added comprehensive tests for GPIO auto-initialization, error cases, and router patch handling. - Introduced new motor tests for movement execution, direction handling, and stop behavior. - Restored and updated scan task path generation tests to validate phi constraints and default values. - Enhanced mocking strategies to simplify setup for hardware and executor dependencies.
Allow equal phi and theta angles in constrained paths
# Conflicts: # tests/controllers/services/test_scan_task.py
Feature: Adjustable pause before capture in scan task
Adds PWM-backed light control with percentage-based intensity handling. - Add PWM configuration defaults and validation for light configs - Map light intensity values (`0..100`) to the configured PWM range (`pwm_min..pwm_max`) - Handle hardware PWM cleanup through the PWM helper - Expose the current light intensity in `LightStatusResponse` - Add PWM developer documentation - Add/update light controller tests for intensity status and value clamping Co-authored-by: esto <esto@openscan.eu>
…#113) * feat(device): introduce PWM configuration and idle timeout support - Added new fields for PWM frequency, min, and max voltage in the light configuration schema. - Introduced `idle_timeout` to replace and mirror `motors_timeout` for backward compatibility. - Updated models, controllers, and routers to handle `idle_timeout` in device settings. - Extended OpenAPI definitions to support new PWM and timeout configurations. - Adjusted tests to validate changes in timeout handling and PWM intensity settings. * feat(device): add wakeup endpoint to resume idle devices - Introduced `/wakeup` endpoint to bring devices out of idle mode. - Device auto-recalibrates upon wake if calibration is required. - Updated OpenAPI definitions and tests to include wakeup functionality. * chore: bump version to 0.11.4 in pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR merges recent developments into
mainthus creating release v0.11.4