Skip to content

Configuration

Martin Scheiber edited this page Dec 13, 2022 · 5 revisions

Configuration Tutorial

The CNS Flight Stack configuration is grouped into six categories:

  1. Sensors
  2. Estimation
  3. Navigation
  4. Safety
  5. Data Storing
  6. Operator

System Overview

As the CNS Flight Stack is currently ROS-based, for each category, several parameters can be set and updated.

Create Configuration Workspace

This part assumes that you have successfully completed the Installation guide and compiled the [CNS Flight Stack Workspace] correctly.

We provide a install script to create your personal flight stack configuration for your project or vehicle. This script will create an additional workspace (called <CONFIG_NAME>_cws and initialize it as a git repository for your convenience. It will then include a ROS package called <CONFIG_NAME>_bringup with the launch scripts for your personal configuration.

cd <PATH_TO_FLIGHSTACK_CWS>/flight_stack_cws
./scripts/create_config.sh -d <PATH_TO_NEW_WORKSPACE> -n <CONFIG_NAME>
# please consult ./scripts/create_config.sh -h for furter information

# source the workspace accordingly
source <PATH_TO_NEW_WORKSPACE>/<CONFIG_NAME>_cws/devel/setup.bash
roscd <CONFIG_NAME>_bringup/launch/

You can the setup the configuration in the six individual launchfiles:

Using personal configuration

Our provided launch scripts already allow the usage of any personal configuration by providing the corresponding configuration name on startup:

# make sure your configuration workspace is sourced

# for remote execute
fs_remote core@<UAV_IP> -d <CONFIG_NAME> -s <CONFIG_NAME> -f <CONFIG_NAME>

# for onboard execute either one of these
fs_dev<1|2> -d <CONFIG_NAME> -s <CONFIG_NAME> -f <CONFIG_NAME>
fs_operator -d <CONFIG_NAME> -s <CONFIG_NAME> -f <CONFIG_NAME> # would also be launched by fs_dev1 automatically

Further information on the usage can be found in the Usage guide.