Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSettingsNotFound = errors.New("settings file not found, default configuration is being generated and used")
ErrSettingsNotFound is returned if settings file is not found.
Functions ¶
This section is empty.
Types ¶
type AngleOfView ¶
type AngleOfView struct { Horizontal float64 `toml:"horizontal"` Vertical float64 `toml:"vertical"` }
AngleOfView stores the angle of view of the camera.
type Calibration ¶
type Calibration struct { CalibrateOnStart bool `toml:"calibrateOnStart"` Invert Invert `toml:"invert"` Coefficient Coefficient `toml:"coefficient"` Tolerate Tolerate `toml:"tolerate"` }
Calibration stores the settings of the coefficients for optimized and smooth movements.
type Camera ¶
type Camera struct { Source int `toml:"source"` MaxFPS int `toml:"maxFPS"` Frame Frame `toml:"frame"` AngleOfView AngleOfView `toml:"angleOfView"` }
Camera stores the camera's specification.
type Coefficient ¶
Coefficient defines the coefficient of the Servos movement.
type Color ¶
type Color struct { Target Target `toml:"target"` Other Other `toml:"other"` MidRect MidRect `toml:"midRect"` }
Color stores the customizable colors of rectangles.
type Config ¶
type Config struct { General General `toml:"general"` Servos Servos `toml:"servos"` Camera Camera `toml:"camera"` Targeting Targeting `toml:"targeting"` Calibration Calibration `toml:"calibration"` }
Config holds IoT specifications and customizable variables.
type General ¶
type General struct { Show bool `toml:"show"` Period int `toml:"period"` IdleDuration float64 `toml:"idleDuration"` }
General is a configuration of the Observer's runtime.
type MidRect ¶
type MidRect struct { Red int `toml:"red"` Green int `toml:"green"` Blue int `toml:"blue"` Thickness int `toml:"thickness"` }
MidRect stores specification of the middle rectangle indicating the focus area.
type Other ¶
type Other struct { Red int `toml:"red"` Green int `toml:"green"` Blue int `toml:"blue"` Thickness int `toml:"thickness"` }
Other stores specification of the rectangles of others.
type Target ¶
type Target struct { Red int `toml:"red"` Green int `toml:"green"` Blue int `toml:"blue"` Thickness int `toml:"thickness"` }
Target stores specification of the target's rectangle.