Skip to content

Commit

Permalink
mavsdk_tests: unused var and index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes authored and dagar committed Apr 30, 2021
1 parent f16913c commit 4f52c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions test/mavsdk_tests/autopilot_tester.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -338,9 +338,6 @@ void AutopilotTester::load_qgc_mission_raw_and_move_here(const std::string &plan

void AutopilotTester::execute_mission_raw()
{
std::promise<void> 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.
Expand Down Expand Up @@ -663,7 +660,7 @@ void AutopilotTester::move_mission_raw_here(std::vector<MissionRaw::MissionItem>
REQUIRE(std::isfinite(position.longitude_deg));

auto offset_x = mission_items[0].x - static_cast<int32_t>(1e7 * position.latitude_deg);
auto offset_y = mission_items[1].y - static_cast<int32_t>(1e7 * position.longitude_deg);
auto offset_y = mission_items[0].y - static_cast<int32_t>(1e7 * position.longitude_deg);

for (auto &item : mission_items) {
if (item.frame == 3) { // MAV_FRAME_GLOBAL_RELATIVE_ALT
Expand Down
2 changes: 1 addition & 1 deletion test/mavsdk_tests/test_vtol_mission.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4f52c0b

Please sign in to comment.