Skip to content

The flip command fails without throwing an error #2

@serge-hulne

Description

@serge-hulne

I tried the following (see code, herunder):

The drone does not flip, yet the API does not return a non-zero error code.

PS: The takeoff and land commands work, though().

//Code:
import { TelloClient } from 'tello-api-client';
import { FlipCommand } from 'tello-api-client';

var IP_ADRESS = '192.168.10.1';
var PORT = 8889;

const cli = new TelloClient(IP_ADRESS, PORT);
cli.command();
cli.takeoff();

function Log(error, data) {
console.log(error : ${error});
console.log(data : ${data});
}

setTimeout(() => {
console.log(FlipCommand.Left = ${FlipCommand.Left});
var rc: any = cli.flip(FlipCommand.Left, Log);
}, 1000);

setTimeout(() => {
cli.land();
}, 5000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions