class Sony::Camera::CGI

Included Modules

Defined in:

sony/camera/cgi_protocol.cr

Class Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Macro Detail

macro in_range(range, value) #

[View source]

Instance Method Detail

def home #

[View source]
def info? #

[View source]
def joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0) #

Implement Camera interface


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

Implement Moveable interface


[View source]
def on_load #

[View source]
def on_update #

[View source]
def pantilt(pan : Int32, tilt : Int32, zoom : Int32 | Nil = nil) : Nil #

[View source]
def query_status(priority : Int32 = 0) #

[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 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) #

Implement Stoppable interface


[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_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Zoomable

This a discrete level on most cameras


[View source]