OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
hardware_io.camera.v4l2_camera_controls.V4L2CameraProfileController Class Reference

Apply repeatable hardware profiles through v4l2-ctl. More...

Inheritance diagram for hardware_io.camera.v4l2_camera_controls.V4L2CameraProfileController:
hardware_io.camera.camera_controls_if.CameraControlsIf

Public Member Functions

CameraProfile|None current_profile (self)
 Return the most recently applied profile.
 
None apply (self, CameraProfile profile)
 Apply a hardware profile.
 
None invalidate (self)
 Forget cached profile state after the device is reopened or reset.
 
None restore_day_defaults (self)
 Return the camera to the conservative daytime hardware profile.
 

Detailed Description

Apply repeatable hardware profiles through v4l2-ctl.

The profile values target the USB camera validated for OpenRoadCode. Although the device advertises exposure_time_absolute, it reports that control inactive and rejects writes while streaming. Low-light mode therefore leaves exposure automatic and uses supported gain, gamma, and backlight controls instead.

Member Function Documentation

◆ apply()

None hardware_io.camera.v4l2_camera_controls.V4L2CameraProfileController.apply (   self,
CameraProfile  profile 
)

Apply a hardware profile.

Parameters
profileHardware profile to apply.

Reimplemented from hardware_io.camera.camera_controls_if.CameraControlsIf.

◆ current_profile()

CameraProfile | None hardware_io.camera.v4l2_camera_controls.V4L2CameraProfileController.current_profile (   self)

Return the most recently applied profile.

Returns
Current profile, or None when hardware state is unknown.

Reimplemented from hardware_io.camera.camera_controls_if.CameraControlsIf.


The documentation for this class was generated from the following file: