class Aver::Cam520Pro

Included Modules

Defined in:

aver/cam520_pro.cr

Class Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Macro Detail

macro parse(response, klass = ::Union(Nil, ::Nil)) #

[View source]

Instance Method Detail

def connected #

[View source]
def disconnected #

[View source]
def joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Camera

Most cameras support sending a move speed, the interface should expect a percentage


[View source]
def keep_alive #

[View source]
def move(position : MoveablePosition, index : Int32 | String = 0) #

moves at 50% of max speed


[View source]
def on_load #

[View source]
def on_update #

[View source]
def pan? #

[View source]
def pan_direct(position : Int32) #

[View source]
def pan_pos : Int32 #

[View source]
def power(state : Bool) #

dummy interface as no power command, camera is always on


[View source]
def recall(position : String, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Camera

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


[View source]
def received(data, task) : Nil #

[View source]
def remove_position(name : String, index : Int32 | String = 0) #

[View source]
def save_position(name : String, index : Int32 | String = 0) #

[View source]
def stop(index : Int32 | String = 0, emergency : Bool = false) #

[View source]
def tilt? #

[View source]
def tilt_direct(position : Int32) #

[View source]
def tilt_pos : Int32 #

[View source]
def zoom(direction : ZoomDirection, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Zoomable

As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required


[View source]
def zoom? #

[View source]
def zoom_native(position : Int32) #

[View source]
def zoom_pos : Int32 #

[View source]
def zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0) #

Zooms to an absolute position


[View source]