Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaiduAPIConfig ¶
type Config ¶
type Config struct { LedPin uint8 `json:"led"` SG90DataPin uint8 `json:"sg90"` BuzzerPin uint8 `json:"buzzer"` RelayPin uint8 `json:"relay"` L298N *L298NConfig `json:"l298n"` US100 *US100Config `json:"us100"` GY25 *GY25Config `json:"gy25"` Joystick *JoystickConfig `json:"joystick"` SelfDriving *SelfDrivingConfig `json:"selfDriving"` SelfTracking *SelfTrackingConfig `json:"SelfTracking"` SpeechDriving *SpeechDrivingConfig `json:"speechDriving"` BaiduAPIConfig *BaiduAPIConfig `json:"baidu"` Volume int `json:"volume"` Speed uint32 `json:"speed"` Host string `json:"host"` VideoHost string `json:"videoHost"` }
Config ...
func LoadConfig ¶
type GY25Config ¶
type JoystickConfig ¶
type JoystickConfig struct { Enabled bool `json:"enabled"` LC12SConfig *LC12SConfig `json:"lc12s"` }
type L298NConfig ¶
type LC12SConfig ¶
type SelfDrivingConfig ¶
type SelfDrivingConfig struct {
Enabled bool `json:"enabled"`
}
type SelfNavConfig ¶
type SelfNavConfig struct {}
type SelfTrackingConfig ¶
type SpeechDrivingConfig ¶
type SpeechDrivingConfig struct {
Enabled bool `json:"enabled"`
}
type TileMapConfig ¶
Click to show internal directories.
Click to hide internal directories.