diff --git a/test/mavsdk_tests/autopilot_tester.cpp b/test/mavsdk_tests/autopilot_tester.cpp index bc4ced3040..3e1d55fd80 100644 --- a/test/mavsdk_tests/autopilot_tester.cpp +++ b/test/mavsdk_tests/autopilot_tester.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2020 PX4 Development Team. All rights reserved. + * Copyright (c) 2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -338,9 +338,6 @@ void AutopilotTester::load_qgc_mission_raw_and_move_here(const std::string &plan void AutopilotTester::execute_mission_raw() { - std::promise prom; - auto fut = prom.get_future(); - REQUIRE(_mission->start_mission() == Mission::Result::Success); // TODO: Adapt time limit based on mission size, flight speed, sim speed factor, etc. @@ -663,7 +660,7 @@ void AutopilotTester::move_mission_raw_here(std::vector REQUIRE(std::isfinite(position.longitude_deg)); auto offset_x = mission_items[0].x - static_cast(1e7 * position.latitude_deg); - auto offset_y = mission_items[1].y - static_cast(1e7 * position.longitude_deg); + auto offset_y = mission_items[0].y - static_cast(1e7 * position.longitude_deg); for (auto &item : mission_items) { if (item.frame == 3) { // MAV_FRAME_GLOBAL_RELATIVE_ALT diff --git a/test/mavsdk_tests/test_vtol_mission.cpp b/test/mavsdk_tests/test_vtol_mission.cpp index 303bb217c2..5417254fce 100644 --- a/test/mavsdk_tests/test_vtol_mission.cpp +++ b/test/mavsdk_tests/test_vtol_mission.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2020 PX4 Development Team. All rights reserved. + * Copyright (c) 2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions