Module lens

Lens functions

Info:

  • Copyright: 2014
  • License: GPL
  • Author: Magic Lantern Team

Functions

focus (num_steps[, step_size=2[, wait=true[, extra_delay=0]]]) Moves the focus motor a specified number of steps.

Fields

name Get the name of the lens (reported by the lens)
focal_length Get the focal length of the lens (in mm)
focus_distance Get the current focus distance (in mm)
hyperfocal Get the hyperfocal distance of the lens (in mm)
dof_near Get the distance to the DOF near (in mm)
dof_far Get the distance to the DOF far (in mm)
af Get whether or not auto focus is enabled
af_mode Get the current auto focus mode (may be model-specific)


Functions

focus (num_steps[, step_size=2[, wait=true[, extra_delay=0]]])
Moves the focus motor a specified number of steps. Only works in LV.

Parameters:

  • num_steps int
  • step_size int (default 2)
  • wait bool (default true)
  • extra_delay int (default 0)

Fields

name
Get the name of the lens (reported by the lens)
focal_length
Get the focal length of the lens (in mm)
  • focal_length int readonly
focus_distance
Get the current focus distance (in mm)
  • focus_distance int readonly
hyperfocal
Get the hyperfocal distance of the lens (in mm)
  • hyperfocal int readonly
dof_near
Get the distance to the DOF near (in mm)
  • dof_near int readonly
dof_far
Get the distance to the DOF far (in mm)
  • dof_far int readonly
af
Get whether or not auto focus is enabled
  • af bool readonly
af_mode
Get the current auto focus mode (may be model-specific)
  • af_mode int readonly
generated by LDoc 1.4.3 Last updated 2016-04-23 15:53:20