mybase

package
v0.53.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mybase implements a base that only supports SetPower (basic forward/back/turn controls.)

Index

Constants

This section is empty.

Variables

View Source
var (
	// Model is the full model definition.
	Model = resource.NewModel("acme", "demo", "mybase")
)

Functions

This section is empty.

Types

type Config added in v0.5.0

type Config struct {
	LeftMotor  string `json:"motorL"`
	RightMotor string `json:"motorR"`
}

Config contains two component (motor) names.

func (*Config) Validate added in v0.5.0

func (cfg *Config) Validate(path string) ([]string, error)

Validate validates the config and returns implicit dependencies, this Validate checks if the left and right motors exist for the module's base model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL