Skip to content

Commit

Permalink
integrate changes from Blocks to AirLib
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Aug 8, 2017
1 parent 50dfd60 commit 3062813
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions AirLib/AirLib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<ClInclude Include="include\physics\DebugPhysicsBody.hpp" />
<ClInclude Include="include\api\ControlServerBase.hpp" />
<ClInclude Include="include\physics\PhysicsBodyWorld.hpp" />
<ClInclude Include="include\physics\PhysicsWorld.hpp" />
<ClInclude Include="include\safety\CubeGeoFence.hpp" />
<ClInclude Include="include\controllers\DroneCommon.hpp" />
<ClInclude Include="include\controllers\DroneControllerBase.hpp" />
Expand Down
3 changes: 3 additions & 0 deletions AirLib/AirLib.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@
<ClInclude Include="include\physics\PhysicsBodyWorld.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\physics\PhysicsWorld.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\safety\ObstacleMap.cpp">
Expand Down
2 changes: 0 additions & 2 deletions AirLibUnitTests/PixhawkTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class PixhawkTest : public TestBase {
testAssert(controller != nullptr, "Couldn't get pixhawk controller");

try {
controller->start();
std::this_thread::sleep_for(std::chrono::milliseconds(10));
controller->stop();
}
catch (std::domain_error& ex) {
std::cout << ex.what() << std::endl;
Expand Down
2 changes: 0 additions & 2 deletions AirLibUnitTests/RosFlightTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class RosFlightTest : public TestBase {
DroneControllerBase* controller = rosFlight->getController();
testAssert(controller != nullptr, "Couldn't get controller");

controller->start();
std::this_thread::sleep_for(std::chrono::milliseconds(10));
controller->stop();
}
};

Expand Down
2 changes: 0 additions & 2 deletions AirLibUnitTests/SimpleFlightTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class SimpleFlightTest : public TestBase
DroneControllerBase* controller = simpleFlight->getController();
testAssert(controller != nullptr, "Couldn't get controller");

controller->start();
std::this_thread::sleep_for(std::chrono::milliseconds(10));
controller->stop();
}
};

Expand Down
1 change: 0 additions & 1 deletion DroneServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ int main(int argc, const char* argv[])
MavLinkDroneController mav_drone;
mav_drone.initialize(connection_info, nullptr, is_simulation);
mav_drone.reset();
mav_drone.start();

DroneControllerCancelable server_wrapper(&mav_drone);
msr::airlib::RpcLibServer server(&server_wrapper, connection_info.local_host_ip);
Expand Down

0 comments on commit 3062813

Please sign in to comment.