commander

package
v0.0.0-...-a6ce1d2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Package commander implements and sends commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serialize

func Serialize(c Command) []byte

Serialize serializes a command

Types

type Command

type Command interface {
	Arguments() []byte
	ID() uint8
}

Command is an interface representing a sendable command

func SetLaser

func SetLaser(state bool) Command

SetLaser generates a command to set the laser state

func SetMotor

func SetMotor(motor uint8, pwm uint8) Command

SetMotor creates a motor set command

type Sender

type Sender interface {
	Send(Command)
}

Sender repreesents anything that can send commands

Jump to

Keyboard shortcuts

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