PlaceOS::Driver::Interface::Camera
Inherits PlaceOS::Driver::Interface::Zoomable < PlaceOS::Driver::Interface::Moveable < PlaceOS::Driver::Interface::Stoppable
All cameras should expose limits:
- pan_range, pan_speed
- tilt_range, tilt_speed
- zoom_range,
- has_discrete_zoom = true / false
Optional:
- focus_out, focus_in, has_discrete_focus
- iris_open, iris_close, has_discrete_iris
Instance methods
joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0)
Most cameras support sending a move speed, the interface should expect a percentage
pan(direction : PanDirection, index : Int32 | String = 0)
Sourcerecall(position : String, index : Int32 | String = 0)
Most cameras support presets (either as a feature or via manual positioning)
remove_position(name : String, index : Int32 | String = 0)
Sourcesave_position(name : String, index : Int32 | String = 0)
Sourcetilt(direction : TiltDirection, index : Int32 | String = 0)
Source