This repository was archived by the owner on Feb 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
How to do
Ruslan Balanukhin edited this page Nov 6, 2013
·
8 revisions
var settings = new Settings();
settings.Control.FlightAnimation = new FlightAnimation(FlightAnimationType.Wave);
_droneClient.Send(settings);
var settings = new Settings();
settings.Leds.LedAnimation = new LedAnimation(LedAnimationType.BlinkGreenRed, 2.0f, 2);
_droneClient.Send(settings);
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();
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);