OperationMode
pub struct OperationMode
One configuration the camera can be put into.
A mode is a whole operating point: an optics, a temperature range, a resolution and a frame rate, which the camera's calibration supports as a set. They cannot be mixed freely; a camera offers a fixed list and you pick one of them.
Its range is in the SDK's temperature unit at the time the mode was
read, and Camera::set_operation_mode reads it in the unit in
force when it is called. Read the modes again after
crate::set_temperature_unit rather than passing back one read in
the other unit, which matches nothing.
OperationMode — fields
optics_fov: i32
The number that characterises the optics. Read
OperationMode::optics_unit to know what it means: degrees
of field of view for most optics, millimetres of focal length
for the rest.
optics_unit: OpticsUnit
What OperationMode::optics_fov is measured in.
optics_text: String
How the optics is described on the camera, possibly empty.
temp_min_c: f32
The coolest temperature this mode measures, in the SDK's
temperature unit (Celsius unless crate::set_temperature_unit
chose Fahrenheit).
temp_max_c: f32
The warmest temperature this mode measures, in the SDK's temperature unit.
width: u32
Frame width this mode produces.
height: u32
Frame height this mode produces.
framerate: u32
Frame rate this mode produces.
extendable: bool
Whether the range can be stretched past its limits, less accurately.
high_precision_available: bool
Whether this mode's calibration offers the high-precision
temperature table. Nothing to do with frame rate, see
Camera::set_temperature_high_precision_enabled.