This example app assembles a flight mode, which will automatically register itself in APX4 and become available in AMC when running. When activated, this flight mode example app holds the current 3D position of the vehicle by setting the desired horizontal acceleration, vertical velocity and the yaw heading rate to zero.
This illustrates the structure of custom flight mode using the SDK, and does not represent a practical use case for a flight mode.
This sets up the minimal structure for a local-frame-dynamics mode for a Multicopter.
You can now run the app locally, with the commands
2. Make it into an AuterionOS app
Turning this example code into an AuterionOS app is done using the App Framework. Make sure to have the tooling set up before continuing. In particular the helper tool auterion-cli should be installed on the machine that is used to build the app.
Create a Dockerfile to build your app image:
Create the auterion-app.yml metadata file:
AuterionOS app API Version v3 or later is required to support Auterion SDK. For more details on the apps API see Apps API
Now, you can build and install your app on Skynode:
Virtual Skynode
If you are building your app for Virtual Skynode, you must provide the --simulation flag to your build arguments to specify the correct simulation target architecture: