Skip to content
8bitbytes edited this page Apr 12, 2018 · 2 revisions

Notes

  • The SdkWrapper is a singleton.
  • Actions are not executed until Execute is called
  • There is no response from the drone to indicate that a command has completed. If you send another command before the previous command has been completed it is ignored. That is why the thread sleeps appear after each command.

Example

Example code to demonstrate how to perform a forward flip;

int main()
{
   SdkWrapper.Instance.BaseActions().TakeOff().Execute();
   Thread.Sleep(2500);
   SdkWrapper.Instance.FlipActions().FlipForward().Execute();
   Thread.Sleep(2500);
   SdkWrapper.Instance.BaseActions().TakeOff().Execute();
   SdkWrapper.Instance.Shutdown();
}
Clone this wiki locally