public void updateCommand(int drone, CommandsUpDownStopEnum command) {
   switch (drone) {
     case 1:
       if (commandsLeft != null) commandsLeft.stopDrone(command == CommandsUpDownStopEnum.STOP);
       break;
     case -1:
       if (commandsRight != null) commandsRight.stopDrone(command == CommandsUpDownStopEnum.STOP);
       break;
   }
 }
 public void updateCommand(int drone, int lrSpeed, int fbSpeed, int vrSpeed, int angSpeed) {
   switch (drone) {
     case 1:
       if (commandsLeft != null) commandsLeft.updateSpeeds(lrSpeed, fbSpeed, vrSpeed, angSpeed);
       break;
     case -1:
       if (commandsRight != null) commandsRight.updateSpeeds(lrSpeed, fbSpeed, vrSpeed, angSpeed);
       break;
   }
 }
 public void updateCommand(int drone, CommandsTakeOffLandingEnum takeoffLandingSet) {
   switch (drone) {
     case 1:
       if (commandsLeft != null) commandsLeft.updateCommand(takeoffLandingSet);
       break;
     case -1:
       if (commandsRight != null) commandsRight.updateCommand(takeoffLandingSet);
       break;
   }
 }
 public void draw() {
   background(0);
   lights();
   if (commandsRight != null) commandsRight.display();
   if (videoRight != null) videoRight.display();
   if (commandsLeft != null) commandsLeft.display();
   if (videoLeft != null) videoLeft.display();
   if (markerControlled != null) markerControlled.display();
   translate(width / 2, height / 2, sceneZoom);
   rotateX(sceneRotX);
   rotateY(sceneRotY);
   rotateZ(sceneRotZ);
   if (controller != null) controller.display();
 }
 public void updateCommand(CommandsTakeOffLandingEnum takeoffLandingSet) {
   if (commandsLeft != null) commandsLeft.updateCommand(takeoffLandingSet);
   if (commandsRight != null) commandsRight.updateCommand(takeoffLandingSet);
 }