Quick Start

This package provides a command-line interface with the pycasx command. General information is available via pycasx [-h|--help] and the current version via pycasx [-v|--version]. All other commands are explained in the following.

Launching ACAS X

You can launch FlightGear via

pycasx launch

Once FlightGear is up and running, just run:

pycasx acasx

This will start the ACAS X with the default settings.

Command Line Interface

The pyCASX package comes with a command line interface (CLI) that allows to run different applications. Following are the most common commands.

onnx or make_onnx

pycasx onnx

Convert the provided .nnet files into .onnx files. This is required if one wants to use the ONNX or PyTorch backend.

Warning

Both the ONNX and PyTorch backend are experimental and not fully tested. The resulting advisories are not necessarily valid!

launch

pycasx launch

Launch FlightGear with options defined in pycasx/cli/launch.py.

acasx

pycasx acasx

Runs the ACAS X with the default settings. This includes the API backend to fetch the advisories via REST calls. Please see the official documentation for more information.

Overwriting parameters

Every launch script has a set of default parameters. Those are handled via Hydra. Accordingly, overwriting parameters can be achieved by following the Hydra documentation.

Nevertheless, overwriting (or adding) new default properties for pycasx launch is not as straight forward as one might try. The correct syntax to overwrite (or add) a default property is

pycasx launch ++prop='{/autopilot/settings/target-speed-kt: 123456789}'