drone

package
v0.0.0-...-8f992f7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TakeoffMove   = Move{Action: actions.Takeoff}
	LandingMove   = Move{Action: actions.Land}
	BackFlipMove  = Move{Action: actions.Backflip}
	FrontFlipMove = Move{Action: actions.FrontFlip}
	LeftFlipMove  = Move{Action: actions.LeftFlip}
	RightFlipMove = Move{Action: actions.RightFlip}
)

Functions

func Connect

func Connect(ctx context.Context, converter *video.Converter) (<-chan []byte, error)

Connect connects to the drone and starts the video

Types

type Move

type Move struct {
	Action actions.Action
	Speed  int
}

Move moves the drone using the given action and speed

type Mover

type Mover func(driver *tello.Driver, move Move)

Mover moves the drone using the given Move

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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