module

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

Source
pan(direction : PanDirection, index : Int32 | String = 0)
Source
recall(position : String, index : Int32 | String = 0)

Most cameras support presets (either as a feature or via manual positioning)

Source
remove_position(name : String, index : Int32 | String = 0)
Source
save_position(name : String, index : Int32 | String = 0)
Source
tilt(direction : TiltDirection, index : Int32 | String = 0)
Source

Nested types