# Autopilot Telemetry (Python)

## Introduction <a href="#introduction" id="introduction"></a>

The `get-telemetry-python` is an application written in Python and using mavsdk to get telemetry from the flight controller (over mavlink) and print the data to the standard output.

This application is composed of one Docker container based on `auterion/ubuntu-python-mavsdk:0.15.0`. This base image is itself based on Python Duster ARM64V8 and contains essential build dependencies to build Python software. It also contains mavsdk python framework v0.15.0.

Our container Dockerfile is really simple, first we copy our python script, then, using the command `ENTRYPOINT`, we define the startup command that Docker will use to start our container.

## Commands <a href="#commands" id="commands"></a>

You can build the application by running the following command:

```
make build
```

It will create an app artifact in `output/get-telemetry-python.auterionos`.

After a successful build, you can connect your Skynode with USB-C and run the following command to install the application on your device:

```
make install
```

You can monitor the application execution by ssh into the device (ssh root\@10.41.1.1) and run the following command:

```
docker logs get-telemetry-python
```

You can stop and remove the application with the following commands:

```
cd /data/app/get-telemetry-python/src 
docker-compose stop 
docker-compose rm -f 
docker rmi get-telemetry-python
```
