Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

How to do

Ruslan Balanukhin edited this page Nov 6, 2013 · 8 revisions

Flight animations

var settings = new Settings();
settings.Control.FlightAnimation = new FlightAnimation(FlightAnimationType.Wave);
_droneClient.Send(settings);

Led animations

var settings = new Settings();
settings.Leds.LedAnimation = new LedAnimation(LedAnimationType.BlinkGreenRed, 2.0f, 2);
_droneClient.Send(settings);

Enable multi-configuration

var settings = new Settings();
 _droneClient.AckControlAndWaitForConfirmation();
settings.Custom.SessionId = Settings.NewId();
_droneClient.Send(settings);
_droneClient.AckControlAndWaitForConfirmation();
settings.Custom.ProfileId = Settings.NewId();
_droneClient.Send(settings);
_droneClient.AckControlAndWaitForConfirmation();
settings.Custom.ApplicationId = Settings.NewId();
_droneClient.Send(settings);
_droneClient.AckControlAndWaitForConfirmation();

Record video to usb

You need to enable multi-configuration first.

var settings = new Settings();
settings.Video.OnUsb = true;
// usage of MP4_360P_H264_720P codec is a requirement for video recording to usb
settings.Video.Codec = VideoCodecType.MP4_360P_H264_720P;
_droneClient.Send(settings);

to start:

settings.Userbox.Command = new UserboxCommand(UserboxCommandType.Start);
_droneClient.Send(settings);

to stop:

settings.Userbox.Command = new UserboxCommand(UserboxCommandType.Stop);
_droneClient.Send(settings);
Clone this wiki locally