Skip to content

Commit

Permalink
core: consolidate component types
Browse files Browse the repository at this point in the history
I doesn't make sense to have this in two places, so I pulled it out.
  • Loading branch information
julianoes committed Oct 4, 2024
1 parent 2328ed6 commit ea2db2c
Show file tree
Hide file tree
Showing 113 changed files with 248 additions and 239 deletions.
3 changes: 1 addition & 2 deletions examples/arm_authorizer_server/arm_authorizer_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ int main(int argc, char** argv)
}

// Create mavlink component with CompanionComputer id
mavsdk::Mavsdk mavsdk{
mavsdk::Mavsdk::Configuration{mavsdk::Mavsdk::ComponentType::GroundStation}};
mavsdk::Mavsdk mavsdk{mavsdk::Mavsdk::Configuration{mavsdk::ComponentType::GroundStation}};

auto result = mavsdk.add_any_connection(argv[1]);

Expand Down
4 changes: 2 additions & 2 deletions examples/autopilot_server/autopilot_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(int argc, char** argv)
// thread as a ground station.
std::thread autopilotThread([]() {
mavsdk::Mavsdk mavsdkTester{
mavsdk::Mavsdk::Configuration{mavsdk::Mavsdk::ComponentType::Autopilot}};
mavsdk::Mavsdk::Configuration{mavsdk::ComponentType::Autopilot}};

auto result = mavsdkTester.add_any_connection("udp://127.0.0.1:14551");
if (result == mavsdk::ConnectionResult::Success) {
Expand Down Expand Up @@ -152,7 +152,7 @@ int main(int argc, char** argv)

// Now this is the main thread, we run client plugins to act as the GCS
// to communicate with the autopilot server plugins.
mavsdk::Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
mavsdk::Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

auto result = mavsdk.add_any_connection("udpin://0.0.0.0:14551");
if (result == mavsdk::ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/calibrate/calibrate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/camera/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
3 changes: 1 addition & 2 deletions examples/camera_server/camera_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ int main(int argc, const char* argv[])
{
// we run client plugins to act as the GCS
// to communicate with the camera server plugins.
mavsdk::Mavsdk mavsdk{
mavsdk::Mavsdk::Configuration{mavsdk::Mavsdk::ComponentType::GroundStation}};
mavsdk::Mavsdk mavsdk{mavsdk::Mavsdk::Configuration{mavsdk::ComponentType::GroundStation}};

auto result = mavsdk.add_any_connection("udp://:14030");
if (result == mavsdk::ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/camera_server/camera_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ static void subscribe_camera_operation(mavsdk::CameraServer& camera_server);

int main(int argc, char** argv)
{
mavsdk::Mavsdk mavsdk{mavsdk::Mavsdk::Configuration{mavsdk::Mavsdk::ComponentType::Camera}};
mavsdk::Mavsdk mavsdk{mavsdk::Mavsdk::Configuration{mavsdk::ComponentType::Camera}};

// 14030 is the default camera port for PX4 SITL
auto result = mavsdk.add_any_connection("udp://127.0.0.1:14030");
Expand Down
2 changes: 1 addition & 1 deletion examples/camera_settings/camera_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/camera_zoom/camera_zoom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/component_metadata/component_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
5 changes: 2 additions & 3 deletions examples/disconnect/disconnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int main(int argc, char** argv)

std::unique_ptr<Mavsdk> mavsdk;

mavsdk = std::make_unique<Mavsdk>(Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation});
mavsdk = std::make_unique<Mavsdk>(Mavsdk::Configuration{ComponentType::GroundStation});

while (true) {
if (connect(mavsdk.get(), connection_url)) {
Expand All @@ -82,8 +82,7 @@ int main(int argc, char** argv)
wait_for_disconnect(mavsdk.get());

// Destruct and construct Mavsdk.
mavsdk =
std::make_unique<Mavsdk>(Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation});
mavsdk = std::make_unique<Mavsdk>(Mavsdk::Configuration{ComponentType::GroundStation});
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion examples/distance_sensor/distance_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/events/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char** argv)
}
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/fly_mission/fly_mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/fly_multiple_drones/fly_multiple_drones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int main(int argc, char* argv[])
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

// Half of argc is how many udp ports is being used
size_t total_ports_used = argc / 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/fly_qgc_mission/fly_qgc_mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

const ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);
if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/follow_me/follow_me.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/ftp_client/ftp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/ftp_server/ftp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::CompanionComputer}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::CompanionComputer}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);
if (connection_result != ConnectionResult::Success) {
std::cerr << "Error setting up Mavlink FTP server.\n";
Expand Down
2 changes: 1 addition & 1 deletion examples/geofence/geofence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/gimbal/gimbal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/gimbal_device_tester/gimbal_device_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ void usage(const std::string& bin_name)

int main(int argc, char** argv)
{
Mavsdk::Configuration config(Mavsdk::ComponentType::Autopilot);
Mavsdk::Configuration config(ComponentType::Autopilot);
config.set_system_id(own_sysid);
Mavsdk mavsdk{config};
std::string connection_url;
Expand Down
2 changes: 1 addition & 1 deletion examples/gimbal_full_control/gimbal_full_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/log_callback/log_callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main(int, char**)
});

// Instantiate Mavsdk after. This will just print the version.
Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

return 0;
}
2 changes: 1 addition & 1 deletion examples/log_streaming/log_streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/logfile_download/logfile_download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main(int argc, char** argv)
}
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/manual_control/manual_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/mavlink_forwarding/mavlink_forwarding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using namespace mavsdk;

int main(int, char**)
{
Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

ConnectionResult connection_result =
mavsdk.add_any_connection("udp://:12550", ForwardingOption::ForwardingOn);
Expand Down
2 changes: 1 addition & 1 deletion examples/mavshell/mavshell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple_drones/multiple_drones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main(int argc, char* argv[])
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

size_t total_udp_ports = argc - 1;

Expand Down
2 changes: 1 addition & 1 deletion examples/offboard/offboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/set_actuator/set_actuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char** argv)
const int index = std::stod(argv[2]);
const float value = std::stof(argv[3]);

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
const ConnectionResult connection_result = mavsdk.add_any_connection(connection_url);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/sniffer/sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/system_info/system_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/takeoff_and_land/takeoff_and_land.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/terminate/terminate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main(int argc, char* argv[])

const std::string connection_url = argv[1];

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

std::cout << "Waiting to discover system...\n";
auto prom = std::promise<std::shared_ptr<System>>{};
Expand Down
2 changes: 1 addition & 1 deletion examples/transponder/transponder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/tune/tune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/vtol_transition/vtol_transition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion examples/winch/winch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char** argv)
return 1;
}

Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};
ConnectionResult connection_result = mavsdk.add_any_connection(argv[1]);

if (connection_result != ConnectionResult::Success) {
Expand Down
2 changes: 1 addition & 1 deletion src/integration_tests/action_goto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace mavsdk;

TEST(SitlTest, PX4ActionGoto)
{
Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

ConnectionResult ret = mavsdk.add_any_connection("udpin://0.0.0.0:14540");
ASSERT_EQ(ret, ConnectionResult::Success);
Expand Down
2 changes: 1 addition & 1 deletion src/integration_tests/action_hold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace mavsdk;

TEST(SitlTest, PX4ActionHold)
{
Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

ConnectionResult ret = mavsdk.add_any_connection("udpin://0.0.0.0:14540");
ASSERT_EQ(ret, ConnectionResult::Success);
Expand Down
2 changes: 1 addition & 1 deletion src/integration_tests/action_hover_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace mavsdk;

TEST(SitlTest, ActionHoverAsync)
{
Mavsdk mavsdk{Mavsdk::Configuration{Mavsdk::ComponentType::GroundStation}};
Mavsdk mavsdk{Mavsdk::Configuration{ComponentType::GroundStation}};

ConnectionResult ret = mavsdk.add_any_connection("udpin://0.0.0.0:14540");
ASSERT_EQ(ret, ConnectionResult::Success);
Expand Down
Loading

0 comments on commit ea2db2c

Please sign in to comment.