class Sony::Camera::VISCA
- Sony::Camera::VISCA
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Camera
- PlaceOS::Driver::Interface::Powerable
Defined in:
sony/camera/visca.crClass Method Summary
Instance Method Summary
-
#connected
clear the interface
- #encode_position(value : UInt16) : String
- #home
-
#joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0)
Most cameras support sending a move speed, the interface should expect a percentage
-
#move(position : MoveablePosition, index : Int32 | String = 0)
moves at 50% of max speed
-
#on_load
we want to tokenize the stream, ensure we only process a single packet at a time and that we have the complete message
- #on_update
- #pan_pos : UInt16
-
#pantilt(pan : UInt16, tilt : UInt16, speed : UInt8)
moves to an absolute position
- #pantilt?
- #power(state : Bool)
- #power?
-
#recall(position : String, index : Int32 | String = 0)
Most cameras support presets (either as a feature or via manual positioning)
-
#received(data, task, sequence : UInt32 | Nil = nil) : Nil
process incoming data, tokenised so we know each data packet is exactly one message
- #remove_position(name : String, index : Int32 | String = 0)
- #reset_sequence_number(directly : Bool = false)
- #save_position(name : String, index : Int32 | String = 0)
- #send_cmd(bytes : String)
- #send_inq(bytes : String)
- #stop(index : Int32 | String = 0, emergency : Bool = false)
- #tilt_pos : UInt16
-
#zoom(direction : ZoomDirection, index : Int32 | String = 0)
As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required
- #zoom?
- #zoom_raw : UInt16
-
#zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0)
Zooms to an absolute position
Class Method Detail
Instance Method Detail
Most cameras support sending a move speed, the interface should expect a percentage
we want to tokenize the stream, ensure we only process a single packet at a time and that we have the complete message
Most cameras support presets (either as a feature or via manual positioning)
process incoming data, tokenised so we know each data packet is exactly one message
As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required
Zooms to an absolute position