Make the drone move right.
967784
def move_right(self):
        """"""
        self.at(ardrone.at.pcmd, True, self.speed, 0, 0, 0)
1337984
def turn_right(self, angle_degrees, rate=RATE):
        
        flight_time = angle_degrees / rate

        self.start_turn_right(rate)
        time.sleep(flight_time)
        self.stop()
954103
def _make_input(self, action, old_quat):
        
        return {
            "dpos": action[:3],
            # IK controller takes an absolute orientation in robot base frame
            "rotation": T.quat2mat(T.quat_multiply(old_quat, action[3:7])),
        }
154913
def turn_left():
    """"""
    motors.left_motor(150)  # spin CCW
    motors.right_motor(150)  # spin CCW
    board.sleep(0.5)
    motors.brake();
    board.sleep(0.1)
793561
def on(self, steering, speed):
        
        (left_speed, right_speed) = self.get_speed_steering(steering, speed)
        MoveTank.on(self, SpeedNativeUnits(left_speed), SpeedNativeUnits(right_speed))
203939
def move_backward(self):
        """"""
        self.at(ardrone.at.pcmd, True, 0, self.speed, 0, 0)
921179
def attach(self):
        """"""
        s = self._sensor
        self.update(s, s.read())
        self._sensor.attach(self)
611285
function flyToPosition(scene, position, durationMilliseconds) {
  var camera = scene.camera;
  var startPosition = camera.position;
  var endPosition = position;

  durationMilliseconds = defaultValue(durationMilliseconds, 200);

  var initialEnuToFixed = Transforms.eastNorthUpToFixedFrame(
    startPosition,
    Ellipsoid.WGS84
  );

  var initialEnuToFixedRotation = new Matrix4();
  Matrix4.getRotation(initialEnuToFixed, initialEnuToFixedRotation);

  var initialFixedToEnuRotation = new Matrix3();
  Matrix3.transpose(initialEnuToFixedRotation, initialFixedToEnuRotation);

  var initialEnuUp = new Matrix3();
  Matrix3.multiplyByVector(initialFixedToEnuRotation, camera.up, initialEnuUp);

  var initialEnuRight = new Matrix3();
  Matrix3.multiplyByVector(
    initialFixedToEnuRotation,
    camera.right,
    initialEnuRight
  );

  var initialEnuDirection = new Matrix3();
  Matrix3.multiplyByVector(
    initialFixedToEnuRotation,
    camera.direction,
    initialEnuDirection
  );

  var controller = scene.screenSpaceCameraController;
  controller.enableInputs = false;

  scene.tweens.add({
    duration: durationMilliseconds / 1000.0,
    easingFunction: Tween.Easing.Sinusoidal.InOut,
    startObject: {
      time: 0.0
    },
    stopObject: {
      time: 1.0
    },
    update: function(value) {
      scene.camera.position.x = CesiumMath.lerp(
        startPosition.x,
        endPosition.x,
        value.time
      );
      scene.camera.position.y = CesiumMath.lerp(
        startPosition.y,
        endPosition.y,
        value.time
      );
      scene.camera.position.z = CesiumMath.lerp(
        startPosition.z,
        endPosition.z,
        value.time
      );

      var enuToFixed = Transforms.eastNorthUpToFixedFrame(
        camera.position,
        Ellipsoid.WGS84
      );

      var enuToFixedRotation = new Matrix3();
      Matrix4.getRotation(enuToFixed, enuToFixedRotation);

      camera.up = Matrix3.multiplyByVector(
        enuToFixedRotation,
        initialEnuUp,
        camera.up
      );
      camera.right = Matrix3.multiplyByVector(
        enuToFixedRotation,
        initialEnuRight,
        camera.right
      );
      camera.direction = Matrix3.multiplyByVector(
        enuToFixedRotation,
        initialEnuDirection,
        camera.direction
      );
    },
    complete: function() {
      controller.enableInputs = true;
    },
    cancel: function() {
      controller.enableInputs = true;
    }
  });
}
1194659
def set_default_pos(self, defaultPos):
        """"""
        self.coords = defaultPos
        self.velocity = r.Vector2()
        self.desired_position = defaultPos
        r.Ragnarok.get_world().Camera.pan = self.coords
        r.Ragnarok.get_world().Camera.desired_pan = self.coords
783203
function startDrones (pkg, done) {
    if (pkg.drones == 0) {
      return done();
    }

    var started = 0;

    async.whilst(function () {
      return started < pkg.drones;
    }, function (next) {
      started++;
      server.drone.start(pkg, next);
    }, done);
  }
659132
private void doStep(boolean forward) {

        // increment or decrement sequence
        if(forward)
            sequenceIndex++;
        else
            sequenceIndex--;

        // check sequence bounds; rollover if needed
        if(sequenceIndex >= stepSequence.length)
            sequenceIndex = 0;
        else if(sequenceIndex < 0)
            sequenceIndex = (stepSequence.length - 1);

        // start cycling GPIO pins to move the motor forward or reverse
        for(int pinIndex = 0; pinIndex < pins.length; pinIndex++) {
            // apply step sequence
            double nib = Math.pow(2, pinIndex);
            if((stepSequence[sequenceIndex] & (int)nib) > 0)
                pins[pinIndex].setState(onState);
            else
                pins[pinIndex].setState(offState);
        }
        try {
            Thread.sleep(stepIntervalMilliseconds, stepIntervalNanoseconds);
        }
        catch (InterruptedException e) {}
    }
755137
def start(self):
        ''''''
        if self.sock is not None:
            self.sock.close()
        self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
        self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
        self.sock.connect(('', gen_settings.port))

        global track_count
        self.aircraft = []
        track_count = 0
        self.last_t = 0

        # some fixed wing aircraft
        for i in range(gen_settings.num_aircraft):
            self.aircraft.append(Aircraft(random.uniform(10, 100), 2000.0))

        # some birds of prey
        for i in range(gen_settings.num_bird_prey):
            self.aircraft.append(BirdOfPrey())

        # some migrating birds
        for i in range(gen_settings.num_bird_migratory):
            self.aircraft.append(BirdMigrating())

        # some weather systems
        for i in range(gen_settings.num_weather):
            self.aircraft.append(Weather())
        print("Started on port %u" % gen_settings.port)
1225688
private void triggerOnReleaseActionsWhileHorizontalDrag(float xVel) {
    if (xVel < 0 && xVel <= -X_MIN_VELOCITY) {
      draggableView.closeToLeft();
    } else if (xVel > 0 && xVel >= X_MIN_VELOCITY) {
      draggableView.closeToRight();
    } else {
      if (draggableView.isNextToLeftBound()) {
        draggableView.closeToLeft();
      } else if (draggableView.isNextToRightBound()) {
        draggableView.closeToRight();
      } else {
        draggableView.minimize();
      }
    }
  }
702894
def takeoff(self):
        '''
        
        '''
        self.send(at.REF(at.REF.input.start))
1232224
def turn_left(self):
        """"""
        self.at(ardrone.at.pcmd, True, 0, 0, 0, -self.speed)
232528
def on_for_rotations(self, steering, speed, rotations, brake=True, block=True):
        
        (left_speed, right_speed) = self.get_speed_steering(steering, speed)
        MoveTank.on_for_rotations(self, SpeedNativeUnits(left_speed), SpeedNativeUnits(right_speed), rotations, brake, block)
169406
def move_right_down(self, action=None, channel=0,
                        vertical_speed=1, horizontal_speed=1):
        

        ret = self.command(
            'ptz.cgi?action={0}&channel={1}&code=RightDown&arg1=0'
            '&arg2={2}&arg3=0'.format(action, channel, vertical_speed)
        )
        return ret.content.decode('utf-8')