Commit 726e36fc authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Do not wait for drone to be disarmed to stop

parent e10b89af
......@@ -153,17 +153,7 @@ int start(const char * ip, int port, const char * log_file, int timeout) {
return 0;
}
int stop(bool shutdown) {
if (!mavsdk_started)
return -1;
if (shutdown) {
while (telemetry->armed())
sleep_for(seconds(1));
if (doAction(&Action::shutdown, "Shutdown failed"))
return -1;
}
int stop() {
// Delete pointers
delete action;
delete mavlink_passthrough;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment