Skip to content

Multiple drones do not takeoff in parallel #1945

@MelSoS

Description

@MelSoS

Dear all,

I'm using the HelloDrone C++ example code und adapted the settings.json + the example code to 10 drones.

Now, for the takeoff: the original file uses
std::cout << "Press Enter to takeoff" << std::endl; std::cin.get(); float takeoffTimeout = 5; client.takeoffAsync(takeoffTimeout)->waitOnLastTask();

I adapted the code (for each drone "Drone1" to "Drone10") to:
client.takeoffAsync(takeoffTimeout, "Drone1")->waitOnLastTask();

Now, in the simulation each drone takes off after takeOffTimeout from the previous drone, is there a possibility to start them all in parallel?
I already tried (all options not working):
client.takeoffAsync(0, "Drone1")->waitOnLastTask();
client.takeoffAsync(takeoffTimeout, "Drone1");

Thank you and best regards,
MelSoS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions