Navigation

Build and debug reference

CatPilot is based on CMake build system.

Building options

Options below customize build for your specific environment.

Option name

Description

Example

BOARD

Board type. Supported options: cube

-DBOARD=cube

CLI_PORT

Define port for CLI console. These options are available [port(alt_name)]: ttyS0(TELEM1), ttyS1(TELEM2), ttyS2(GPS1), ttyS4(DBG), ttyS5(GPS2)

-DCLI_PORT=DBG

CLI_BAUDRATE

Define serial port baudrate for communication

-DCLI_BAUDRATE=57600

OS_MONITOR

Enable system information monitoring code for threads, cpu load and available RAM. This option enables cli command monitor

-DOS_MONITOR=ON

Build example:

rm -r -f build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBOARD=cube -DCLI_PORT=DBG -DCLI_BAUDRATE=57600 -DOS_MONITOR=ON
make uas-catpilot.elf
cd ..