Skip to content

Commit

Permalink
Merge pull request #1231 from mavlink/pr-bugfix
Browse files Browse the repository at this point in the history
Fix mavsdk_server start
  • Loading branch information
julianoes committed Oct 19, 2020
2 parents 148d88e + d3b3c50 commit fc27979
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install lcov
run: sudo apt-get install -y lcov
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Coverage -DASAN=ON -DUBSAN=ON -DLSAN=ON -DWERROR=ON -j 2 -Bbuild -H.
run: cmake -DCMAKE_BUILD_TYPE=Coverage -DASAN=ON -DUBSAN=ON -DLSAN=ON -DWERROR=OFF -j 2 -Bbuild -H.
- name: build
run: cmake --build build -j 2
- name: test
Expand All @@ -46,7 +46,7 @@ jobs:
- name: install
run: sudo apt-get update && sudo apt-get install -y libjsoncpp-dev libcurl4-openssl-dev libtinyxml2-dev
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=OFF -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=OFF -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release -j 2
- name: test
Expand All @@ -60,15 +60,15 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=ON -DBUILD_BACKEND=ON -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=ON -DBUILD_BACKEND=ON -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release -j 2
- name: install
run: sudo cmake --build build/release --target install
- name: install examples dependencies
run: sudo apt-get install -y libsdl2-dev
- name: configure examples
run: (cd examples && cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -j 2 -Bbuild -H.)
run: (cd examples && cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -j 2 -Bbuild -H.)
- name: build examples
run: (cd examples && cmake --build build -j 2)
- name: test
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_MAVSDK_SERVER=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_MAVSDK_SERVER=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release --target install -- -j2
- name: test
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
export CXX=/usr/lib/ccache/bin/g++
export CCACHE_COMPRESS="true"
export CCACHE_MAXSIZE="400M"
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_MAVSDK_SERVER=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=ON -j 2 -Bbuild/release -H.
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_MAVSDK_SERVER=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -j 2 -Bbuild/release -H.
cmake --build build/release --target install -- -j2
./build/release/src/unit_tests_runner
./build/release/src/backend/test/unit_tests_backend
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release --target install -- -j2
- name: Package
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release --target install -- -j2
- name: Package
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:
- name: setup dockcross
run: docker run --rm dockcross/${{ matrix.arch_name }} > ./dockcross-${{ matrix.arch_name }}; chmod +x ./dockcross-${{ matrix.arch_name }}
- name: configure
run: ./dockcross-${{ matrix.arch_name }} cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/${{ matrix.arch_name }}/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/${{ matrix.arch_name }} -H.
run: ./dockcross-${{ matrix.arch_name }} cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/${{ matrix.arch_name }}/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/${{ matrix.arch_name }} -H.
- name: build
run: ./dockcross-${{ matrix.arch_name }} cmake --build build/${{ matrix.arch_name }} -j 2 --target install
- name: Publish artefacts
Expand All @@ -354,7 +354,7 @@ jobs:
- name: setup dockcross
run: docker run --rm dockcross/android-arm > ./dockcross-android-arm; chmod +x ./dockcross-android-arm
- name: configure
run: ./dockcross-android-arm cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/android-arm/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/android-arm -H.
run: ./dockcross-android-arm cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/android-arm/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/android-arm -H.
- name: build
run: ./dockcross-android-arm cmake --build build/android-arm -j 2 --target install
- name: create tar with header and library
Expand All @@ -379,7 +379,7 @@ jobs:
- name: setup dockcross
run: docker run --rm dockcross/android-arm64 > ./dockcross-android-arm64; chmod +x ./dockcross-android-arm64
- name: configure
run: ./dockcross-android-arm64 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/android-arm64/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/android-arm64 -H.
run: ./dockcross-android-arm64 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/android-arm64/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/android-arm64 -H.
- name: build
run: ./dockcross-android-arm64 cmake --build build/android-arm64 -j 2 --target install
- name: create tar with header and library
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/release/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/release/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/release -H.
- name: build
run: cmake --build build/release -j 2 --target install
- name: test (core)
Expand All @@ -442,11 +442,11 @@ jobs:
with:
submodules: recursive
- name: configure (ios)
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/tools/ios.toolchain.cmake -DPLATFORM=OS -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/ios -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/tools/ios.toolchain.cmake -DPLATFORM=OS -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/ios -H.
- name: build (ios)
run: cmake --build build/ios -j 2
- name: configure (ios_simulator)
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/tools/ios.toolchain.cmake -DPLATFORM=SIMULATOR64 -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/ios_simulator -H.
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/tools/ios.toolchain.cmake -DPLATFORM=SIMULATOR64 -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/ios_simulator -H.
- name: build (ios_simulator)
run: cmake --build build/ios_simulator -j 2
- name: Package
Expand All @@ -470,7 +470,7 @@ jobs:
with:
submodules: recursive
- name: configure
run: cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/release/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=ON -j 2 -Bbuild/release -S.
run: cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/release/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -j 2 -Bbuild/release -S.
- name: build
run: cmake --build build/release -j 2 --config Release --target install
- name: Publish artefacts
Expand Down
36 changes: 18 additions & 18 deletions src/backend/src/grpc_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,41 +52,41 @@ class GRPCServer {
_port(0),
_mavsdk(mavsdk),
_core(_mavsdk),
_action(_mavsdk.systems().at(0)),
_action(_mavsdk.system()),
_action_service(_action),
_calibration(_mavsdk.systems().at(0)),
_calibration(_mavsdk.system()),
_calibration_service(_calibration),
_camera(_mavsdk.systems().at(0)),
_camera(_mavsdk.system()),
_camera_service(_camera),
_follow_me(_mavsdk.systems().at(0)),
_follow_me(_mavsdk.system()),
_follow_me_service(_follow_me),
_ftp(_mavsdk.systems().at(0)),
_ftp(_mavsdk.system()),
_ftp_service(_ftp),
_geofence(_mavsdk.systems().at(0)),
_geofence(_mavsdk.system()),
_geofence_service(_geofence),
_gimbal(_mavsdk.systems().at(0)),
_gimbal(_mavsdk.system()),
_gimbal_service(_gimbal),
_info(_mavsdk.systems().at(0)),
_info(_mavsdk.system()),
_info_service(_info),
_log_files(_mavsdk.systems().at(0)),
_log_files(_mavsdk.system()),
_log_files_service(_log_files),
_manual_control(_mavsdk.systems().at(0)),
_manual_control(_mavsdk.system()),
_manual_control_service(_manual_control),
_mission(_mavsdk.systems().at(0)),
_mission(_mavsdk.system()),
_mission_service(_mission),
_mission_raw(_mavsdk.systems().at(0)),
_mission_raw(_mavsdk.system()),
_mission_raw_service(_mission_raw),
_mocap(_mavsdk.systems().at(0)),
_mocap(_mavsdk.system()),
_mocap_service(_mocap),
_offboard(_mavsdk.systems().at(0)),
_offboard(_mavsdk.system()),
_offboard_service(_offboard),
_param(_mavsdk.systems().at(0)),
_param(_mavsdk.system()),
_param_service(_param),
_shell(_mavsdk.systems().at(0)),
_shell(_mavsdk.system()),
_shell_service(_shell),
_telemetry(_mavsdk.systems().at(0)),
_telemetry(_mavsdk.system()),
_telemetry_service(_telemetry),
_tune(_mavsdk.systems().at(0)),
_tune(_mavsdk.system()),
_tune_service(_tune)
{}

Expand Down

0 comments on commit fc27979

Please sign in to comment.