Camera2Config
public protocol Camera2Config
Camera configuration.
-
Whether the configuration has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Identifiers of configuration parameters supported by the camera.
Declaration
Swift
var supportedParams: Set<Camera2ParamId> { get }
-
Provides access to a configuration parameter of type
V
.Declaration
Swift
subscript<V>(param: Camera2Param<V>) -> Camera2ImmutableParam<V>? where V : Hashable { get }
Parameters
param
configuration parameter descriptor
Return Value
the configuration parameter or
nil
if not supported by the drone -
Provides access to a configuration parameter of type
Double
.Declaration
Swift
subscript(param: Camera2Param<Double>) -> Camera2Double? { get }
Parameters
param
configuration parameter descriptor
Return Value
the configuration parameter or
nil
if not supported by the drone -
Edits camera configuration.
Declaration
Swift
func edit(fromScratch: Bool) -> Camera2Editor
Parameters
fromScratch
when
true
all parameters in the returnedCamera2Editor
are clearer; whenfalse
all parameters in the returnedCamera2Editor
hold the current camera configuration valueReturn Value
a configuration editor