platforms

package
v0.0.0-...-718ecc9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArduPilot

type ArduPilot struct {
	// contains filtered or unexported fields
}

func (*ArduPilot) GetGazeboConfig

func (a *ArduPilot) GetGazeboConfig() (*sim.GazeboConfig, error)

implements System

func (*ArduPilot) Shutdown

func (a *ArduPilot) Shutdown(ctx context.Context) error

implements System

func (*ArduPilot) Start

func (a *ArduPilot) Start() error

implements System

type PX4

type PX4 struct {
	// contains filtered or unexported fields
}

func (*PX4) GetGazeboConfig

func (px4 *PX4) GetGazeboConfig() (*sim.GazeboConfig, error)

implements System

func (*PX4) Shutdown

func (px4 *PX4) Shutdown(ctx context.Context) error

implements System

func (*PX4) Start

func (px4 *PX4) Start() error

implements System

type System

type System interface {
	// starts the autopilot
	Start() error

	// stops the autopilot
	Shutdown(ctx context.Context) error

	// Gets the gazebo configuration.
	// If gazebo is unsupported, return an error.
	GetGazeboConfig() (*sim.GazeboConfig, error)
}

func NewArduPilotFromEnv

func NewArduPilotFromEnv() (System, error)

func NewPX4FromEnv

func NewPX4FromEnv() (System, error)

Jump to

Keyboard shortcuts

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