-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We need to create a control script that will take in MAVLink telemetry and output UART commands to aim the 2 axis dish.
Telemetry will be forwarded from Mission Planner, which can be enabled by pressing ctrl+F to open the advanced menu, clicking "MAVLink" and entering an interface and port.
We want to listen for GLOBAL_POSITION_INT messages to calculate the offset from the ground station to the drone.
I think you will be able to read these by creating a Controller object (from MAVez python package we created that can be installed via pip install mavez) and setting up an async loop to receive_gps
There is a Coordinate class inside of MAVez that provides a bearing_to method
Check out the MAVez source code for clarification on how these work.
The output should be a stream of 2 floats, i.e. 123.4 -56.7 sent over UART. The first float should represent the compass bearing (azimuth) and the second float should represent the elevation angle (altitude).