Documentation
¶
Overview ¶
Package playground is a builtin designed for frontend developers to test configuration UIs. It provides a root device with an "Enable Discovery" boolean. When enabled, it spawns several subdevices exercising different configuration scenarios:
- "configured": has a configurable schema + default config values (continuous controller)
- "unconfigured": has a configurable schema but no default config (polling controller)
- "broken": has neither a config nor a configurable (always fails)
A fourth device class ("manual") can be added by the frontend. The backend attaches a configurable schema to it once it appears. It includes a "crash" option that makes the controller return an error on purpose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlankingSector ¶
type RadarConfig ¶
type RadarConfig struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Altitude float64 `json:"altitude"`
GroundLevel float64 `json:"ground_level"`
Orientation float64 `json:"orientation"`
RangeKM float64 `json:"range_km"`
AltitudeMargin float64 `json:"altitude_margin"`
MaxDroneSpeedKmh float64 `json:"max_drone_speed_kmh"`
TrackHistory bool `json:"track_history"`
OnlyAlarms bool `json:"only_alarms"`
ShowDrone bool `json:"show_drone"`
ShowSuspected bool `json:"show_suspected"`
ShowFixedWing bool `json:"show_fixed_wing"`
ShowBird bool `json:"show_bird"`
ShowVehicle bool `json:"show_vehicle"`
TrackCount int `json:"track_count"`
UpdateIntervalMs int `json:"update_interval_ms"`
Blanking1Angle float64 `json:"blanking_1_angle"`
Blanking1Span float64 `json:"blanking_1_span"`
Blanking1Enabled bool `json:"blanking_1_enabled"`
Blanking2Angle float64 `json:"blanking_2_angle"`
Blanking2Span float64 `json:"blanking_2_span"`
Blanking2Enabled bool `json:"blanking_2_enabled"`
}
Click to show internal directories.
Click to hide internal directories.