Within the TelemData application there are functions for retrieving latitude and longitude from the pixhawk located on the vehicle. The task here is to create a new function that asks the pixhawk for directional data instead of latitude and longitude. The function should be very similar to the getLat and getLon functions.
Input:
None
Output:
The vehicles direction in degrees
If not connected to the vehicle return -1
Notes:
The libraries used to get this data are pymavlink and dronekit: documentation found beellow
Within the TelemData application there are functions for retrieving latitude and longitude from the pixhawk located on the vehicle. The task here is to create a new function that asks the pixhawk for directional data instead of latitude and longitude. The function should be very similar to the
getLat
andgetLon
functions.Input:
Output:
Notes:
pymavlink
anddronekit
: documentation found beellow