コード例 #1
0
ファイル: LineNavigator.cs プロジェクト: TNvGelder/DroneIt
 //Moves the drone in a direction.
 private void move(DroneController controller, FlyDirection direction)
 {
     if (direction == FlyDirection.Forward)
     {
         controller.Forward();
     }
     else if (direction == FlyDirection.Backward)
     {
         controller.Backward();
     }
     else if (direction == FlyDirection.Left)
     {
         controller.Left();
     }
     else if (direction == FlyDirection.Right)
     {
         controller.Right();
     }
 }