curveToPosition method

Future<String> curveToPosition({
  1. int x1 = 0,
  2. int y1 = 0,
  3. int z1 = 0,
  4. int x2 = 0,
  5. int y2 = 0,
  6. int z2 = 0,
  7. int speed = 20,
})

Makes the Tello move in a curve that passes through the (x1, y1, z1) and (x2, y2, z2) coordinates that you specify.

Implementation

Future<String> curveToPosition({
  int x1 = 0,
  int y1 = 0,
  int z1 = 0,
  int x2 = 0,
  int y2 = 0,
  int z2 = 0,
  int speed = 20,
}) =>
    _command("curve $x1 $y1 $z1 $x2 $y2 $z2 $speed");