module PlaceOS::Driver::Interface::Zoomable

Overview

Implements the direct #zoom_to function

if the device supports continuous zoom then you should overwrite the included #zoom function

Direct including types

Defined in:

placeos-driver/interface/zoomable.cr

Instance Method Summary

Instance Method Detail

def 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


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

This a discrete level on most cameras


[View source]