Git Product home page Git Product logo

configuration-manager's Introduction

Configuration Manager

Build and Test in Ubuntu

Introduction

The Configuration Manager is a software service that uses MAVSDK and MAVLink in order to setup parameters in Software components that do not communicate through MAVLink. This is achieved by MAVLink Parameter Transaction microservice (WIP and to be documented in the spec), and the transaction happens through another communication protocol channel, like DBUS or UDS. Currently the service uses DBUS and provides a way to configure the parameters of the Autopilot Manager service, which means this service is a dependency of the Autopilot Manager service for correct parameter setup.

Note that a ground station-type of MAVLink endpoint should be capable of setting and initializing the transaction for the different parameters to be configured on the end software component. Auterion Mission Control already provides this implementation, while the Parameter Transaction is not standerdized as a microservice in the spec, so to be then used in QGroundcontrol and in MAVSDK. Please contact Auterion if you want to know more about Auterion Mission Control.

The Parameter Transaction MAVLink microservice

This microservice is still work-in-progress and will soon be documented on the MAVLink spec so the parameter transaction initialization can be initialized. Though the respective messages are already available in the development dialect:

Dependencies

The configuration-manager depends on the following packages:

apt install \
  libdbus-1-dev \
  libglib2.0-dev

One also needs to install MAVSDK. Follow this guide for how to: https://mavsdk.mavlink.io/develop/en/getting_started/installation.html

Build

One can build configuration-manager with the following commands:

mkdir -p build
cd build
cmake ..
make

Packaging

One can package configuration-manager as a debian package with the following commands:

dpkg-buildpackage -us -uc -nc -b

Note before packaging: the DBUS configuration should include the username of the system where the configuration-manager is running so the user has the appropriate policies to access DBUS through it. Make sure to add the policy as following to the com.auterion.configuration_manager.conf file before packaging, so it then gets deployed with the right policies to /usr/share/dbus-1/system.d/. Example bellow:

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <policy user="root">
    <allow own="com.auterion.configuration_manager"/>
    <allow send_destination="com.auterion.configuration_manager"
        send_interface="com.auterion.configuration_manager.interface"/>
  </policy>
  <!-- Add your user here -->
  <!-- example user -->
  <policy user="user1"> <!-- replace "user1" with your system username -->
    <allow own="com.auterion.configuration_manager"/>
    <allow send_destination="com.auterion.configuration_manager"
        send_interface="com.auterion.configuration_manager.interface"/>
  </policy>
  <!--**************-->
</busconfig>

Installation

In case one built the configuration-manager, you can run the following command to install it system-wide:

dpkg -i configuration-manager*.deb

Run

Run the configuration-manager with the following command:

configuration-manager

configuration-manager's People

Contributors

tsc21 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.