Skip to content

Commit

Permalink
resolved compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Apr 22, 2017
1 parent 36dc195 commit 08aae23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions AirLib/include/vehicles/configs/RosFlightQuadX.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "controllers/rosflight/RosFlightDroneController.hpp"
#include "vehicles/MultiRotorParams.hpp"
#include "controllers/Settings.hpp"


namespace msr { namespace airlib {
Expand Down
10 changes: 5 additions & 5 deletions DroneServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ int main(int argc, const char* argv[])
settings.getChild("Pixhawk", child);

// allow json overrides on a per-vehicle basis.
connection_info.sim_sysid = static_cast<msr::airlib::uint8_t>(child.getInt("SimSysID", connection_info.sim_sysid));
connection_info.sim_sysid = static_cast<uint8_t>(child.getInt("SimSysID", connection_info.sim_sysid));
connection_info.sim_compid = child.getInt("SimCompID", connection_info.sim_compid);

connection_info.vehicle_sysid = static_cast<msr::airlib::uint8_t>(child.getInt("VehicleSysID", connection_info.vehicle_sysid));
connection_info.vehicle_sysid = static_cast<uint8_t>(child.getInt("VehicleSysID", connection_info.vehicle_sysid));
connection_info.vehicle_compid = child.getInt("VehicleCompID", connection_info.vehicle_compid);

connection_info.offboard_sysid = static_cast<msr::airlib::uint8_t>(child.getInt("OffboardSysID", connection_info.offboard_sysid));
connection_info.offboard_sysid = static_cast<uint8_t>(child.getInt("OffboardSysID", connection_info.offboard_sysid));
connection_info.offboard_compid = child.getInt("OffboardCompID", connection_info.offboard_compid);

connection_info.logviewer_ip_address = child.getString("LogViewerHostIp", connection_info.logviewer_ip_address);
Expand Down Expand Up @@ -79,9 +79,9 @@ int main(int argc, const char* argv[])
DroneControllerCancelable server_wrapper(&mav_drone);
msr::airlib::RpcLibServer server(&server_wrapper, connection_info.local_host_ip);

auto v = std::vector<msr::airlib::uint8_t>{ 5, 4, 3 };
auto v = std::vector<uint8_t>{ 5, 4, 3 };
server_wrapper.setImageForCamera(3, DroneControllerBase::ImageType::Depth, v);
server_wrapper.setImageForCamera(4, DroneControllerBase::ImageType::Scene, std::vector<msr::airlib::uint8_t>{6, 5, 4, 3, 2});
server_wrapper.setImageForCamera(4, DroneControllerBase::ImageType::Scene, std::vector<uint8_t>{6, 5, 4, 3, 2});

//start server in async mode
server.start(false);
Expand Down

0 comments on commit 08aae23

Please sign in to comment.