Package minidrone contains the Gobot driver for the Parrot Minidrone.
For more information refer to the minidrone README: https://github.com/hybridgroup/gobot/blob/master/platforms/parrot/minidrone/README.md
const ( // Battery event Battery = "battery" // FlightStatus event FlightStatus = "flightstatus" // Takeoff event Takeoff = "takeoff" // Hovering event Hovering = "hovering" // Flying event Flying = "flying" // Landing event Landing = "landing" // Landed event Landed = "landed" // Emergency event Emergency = "emergency" // Rolling event Rolling = "rolling" // FlatTrimChange event FlatTrimChange = "flattrimchange" // LightFixed mode for LightControl LightFixed = 0 // LightBlinked mode for LightControl = 1 // LightOscillated mode for LightControl LightOscillated = 3 // ClawOpen mode for ClawControl ClawOpen = 0 // ClawClosed mode for ClawControl ClawClosed = 1 )
ValidatePitch helps validate pitch values such as those created by a joystick to values between 0-100 that are required as params to Parrot Minidrone PCMDs
Driver is the Gobot interface to the Parrot Minidrone
NewDriver creates a Parrot Minidrone Driver
BackFlip tells the drone to perform a backflip
Backward tells drone to go in reverse. Pass in an int from 0-100.
ClawControl controls the claw on the Parrot Mambo Params:
id - always 0 mode - either ClawOpen or ClawClosed
Clockwise tells drone to rotate in a clockwise direction. Pass in an int from 0-100.
Connection returns the BLE connection
CounterClockwise tells drone to rotate in a counter-clockwise direction. Pass in an int from 0-100.
Down tells the drone to descend. Pass in an int from 0-100.
Emergency sets the Minidrone into emergency mode
FlatTrim calibrates the Minidrone to use its current position as being level
Forward tells the drone to go forward. Pass in an int from 0-100.
FrontFlip tells the drone to perform a front flip
GenerateAllStates sets up all the default states aka settings on the drone
GunControl fires the gun on the Parrot Mambo Params:
id - always 0
Halt stops minidrone driver (void)
HullProtection is not supported by the Parrot Minidrone
Init initializes the BLE insterfaces used by the Minidrone
Land tells the Minidrone to land
Left tells drone to go left. Pass in an int from 0-100.
LeftFlip tells the drone to perform a flip to the left
LightControl controls lights on those Minidrone models which have the correct hardware, such as the Maclane, Blaze, & Swat. Params:
id - always 0 mode - either LightFixed, LightBlinked, or LightOscillated intensity - Light intensity from 0 (OFF) to 100 (Max intensity). Only used in LightFixed mode.
Name returns the Driver Name
Outdoor mode is not supported by the Parrot Minidrone
Right tells drone to go right. Pass in an int from 0-100.
RightFlip tells the drone to perform a flip to the right
SetName sets the Driver Name
Start tells driver to get ready to do work
StartPcmd starts the continuous Pcmd communication with the Minidrone
StartRecording is not supported by the Parrot Minidrone
Stop tells the drone to stop moving in any direction and simply hover in place
StopRecording is not supported by the Parrot Minidrone
TakeOff tells the Minidrone to takeoff
TakePicture tells the Minidrone to take a picture
Up tells the drone to ascend. Pass in an int from 0-100.
Pcmd is the Parrot Command structure for flight control