Versions in this module Expand all Collapse all v1 v1.12.0 Aug 27, 2018 Changes in this version + const BounceEvent + const ConnectedEvent + const FlightDataEvent + const FlipEvent + const LandingEvent + const LightStrengthEvent + const LogEvent + const PalmLandingEvent + const SetExposureEvent + const SetVideoEncoderRateEvent + const TakeoffEvent + const TimeEvent + const VideoFrameEvent + const WifiDataEvent + func CalculateCRC16(pkt []byte) uint16 + func CalculateCRC8(pkt []byte) byte + func ValidatePitch(data float64, offset float64) int + type Driver struct + func NewDriver(port string) *Driver + func (d *Driver) BackFlip() (err error) + func (d *Driver) Backward(val int) error + func (d *Driver) Bounce() (err error) + func (d *Driver) CeaseRotation() + func (d *Driver) Clockwise(val int) error + func (d *Driver) Connection() gobot.Connection + func (d *Driver) CounterClockwise(val int) error + func (d *Driver) Down(val int) error + func (d *Driver) Flip(direction FlipType) (err error) + func (d *Driver) Forward(val int) error + func (d *Driver) FrontFlip() (err error) + func (d *Driver) Halt() (err error) + func (d *Driver) Hover() + func (d *Driver) Land() (err error) + func (d *Driver) Left(val int) error + func (d *Driver) LeftFlip() (err error) + func (d *Driver) Name() string + func (d *Driver) PalmLand() (err error) + func (d *Driver) ParseFlightData(b []byte) (fd *FlightData, err error) + func (d *Driver) Rate() (err error) + func (d *Driver) Right(val int) error + func (d *Driver) RightFlip() (err error) + func (d *Driver) SendCommand(cmd string) (err error) + func (d *Driver) SendDateTime() (err error) + func (d *Driver) SendStickCommand() (err error) + func (d *Driver) SetExposure(level int) (err error) + func (d *Driver) SetFastMode() error + func (d *Driver) SetName(n string) + func (d *Driver) SetSlowMode() error + func (d *Driver) SetVideoEncoderRate(rate VideoBitRate) (err error) + func (d *Driver) Start() error + func (d *Driver) StartVideo() (err error) + func (d *Driver) StopLanding() (err error) + func (d *Driver) TakeOff() (err error) + func (d *Driver) ThrowTakeOff() (err error) + func (d *Driver) Up(val int) error + type FlightData struct + BatteryLow bool + BatteryLower bool + BatteryPercentage int8 + BatteryState bool + CameraState int8 + DownVisualState bool + DroneBatteryLeft int16 + DroneFlyTimeLeft int16 + DroneHover bool + EastSpeed int16 + ElectricalMachineryState int16 + EmGround bool + EmOpen bool + EmSky bool + FactoryMode bool + FlyMode int8 + FlySpeed int16 + FlyTime int16 + FrontIn bool + FrontLSC bool + FrontOut bool + GravityState bool + GroundSpeed int16 + Height int16 + ImuCalibrationState int8 + ImuState bool + LightStrength int8 + NorthSpeed int16 + OutageRecording bool + PowerState bool + PressureState bool + SmartVideoExitMode int16 + TemperatureHeight bool + ThrowFlyTimer int8 + WifiDisturb int8 + WifiStrength int8 + WindState bool + type FlipType int + const FlipBack + const FlipBackLeft + const FlipBackRight + const FlipForwardLeft + const FlipForwardRight + const FlipFront + const FlipLeft + const FlipRight + type VideoBitRate int + const VideoBitRate15M + const VideoBitRate1M + const VideoBitRate2M + const VideoBitRate3M + const VideoBitRate4M + const VideoBitRateAuto + type WifiData struct + Disturb int8 + Strength int8