Documentation ¶
Overview ¶
Package minidrone contains the Gobot driver for the Parrot Minidrone.
For more information refer to the minidrone README: https://gobot.io/x/gobot/blob/master/platforms/parrot/minidrone/README.md
Index ¶
- Constants
- type Driver
- func (b *Driver) BackFlip() (err error)
- func (b *Driver) Backward(val int) error
- func (b *Driver) Clockwise(val int) error
- func (b *Driver) Connection() gobot.Connection
- func (b *Driver) CounterClockwise(val int) error
- func (b *Driver) Down(val int) error
- func (b *Driver) FlatTrim() (err error)
- func (b *Driver) Forward(val int) error
- func (b *Driver) FrontFlip() (err error)
- func (b *Driver) GenerateAllStates() (err error)
- func (b *Driver) Halt() (err error)
- func (b *Driver) HullProtection(protect bool) error
- func (b *Driver) Init() (err error)
- func (b *Driver) Land() (err error)
- func (b *Driver) Left(val int) error
- func (b *Driver) LeftFlip() (err error)
- func (b *Driver) Name() string
- func (b *Driver) Outdoor(outdoor bool) error
- func (b *Driver) Right(val int) error
- func (b *Driver) RightFlip() (err error)
- func (b *Driver) SetName(n string)
- func (b *Driver) Start() (err error)
- func (b *Driver) StartPcmd()
- func (b *Driver) StartRecording() error
- func (b *Driver) Stop() error
- func (b *Driver) StopRecording() error
- func (b *Driver) TakeOff() (err error)
- func (b *Driver) Up(val int) error
- type Pcmd
Constants ¶
View Source
const ( // service IDs DroneCommandService = "9a66fa000800919111e4012d1540cb8e" DroneNotificationService = "9a66fb000800919111e4012d1540cb8e" // characteristic IDs PcmdCharacteristic = "9a66fa0a0800919111e4012d1540cb8e" CommandCharacteristic = "9a66fa0b0800919111e4012d1540cb8e" FlightStatusCharacteristic = "9a66fb0e0800919111e4012d1540cb8e" BatteryCharacteristic = "9a66fb0f0800919111e4012d1540cb8e" // Battery event Battery = "battery" // flight status event Status = "status" // flying event Flying = "flying" // landed event Landed = "landed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver is gobot software device to the keyboard
func NewDriver ¶
func NewDriver(a *ble.ClientAdaptor) *Driver
NewDriver creates a Parrot Minidrone Driver
func (*Driver) Connection ¶
func (b *Driver) Connection() gobot.Connection
func (*Driver) CounterClockwise ¶
func (*Driver) GenerateAllStates ¶
func (*Driver) HullProtection ¶
HullProtection not supported
func (*Driver) StartRecording ¶
StartRecording not supported
Click to show internal directories.
Click to hide internal directories.