Can successfully send messages

This commit is contained in:
2019-09-04 19:41:44 -06:00
parent e66bd40e06
commit 9e6ce4d9f6
9 changed files with 79 additions and 41 deletions

View File

@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
namespace Tello_Drone
{
public class Drone : IDrone
public class Drone
{
private readonly IDroneCommands _droneCommands;
@@ -11,10 +11,17 @@ namespace Tello_Drone
_droneCommands = droneCommands;
}
public bool Forward() => _droneCommands.Forward();
public bool Reverse() => _droneCommands.Reverse();
public bool Up() => _droneCommands.Up();
public bool Down() => _droneCommands.Down();
public void Forward(int x) => _droneCommands.Forward(x);
public void Reverse(int x) => _droneCommands.Reverse(x);
public void Up(int z) => _droneCommands.Up(z);
public void Down(int z) => _droneCommands.Down(z);
public void Left(int y) => _droneCommands.Left(y);
public void Right(int y) => _droneCommands.Right(y);
public bool Command() => _droneCommands.Command();
public bool InitialTakeOff() => _droneCommands.InitialTakeOff();
public void TakeOff() => _droneCommands.TakeOff();
public void Land() => _droneCommands.Land();
public void RotateClockWise(int r) => _droneCommands.RotateClockWise(r);
}