- import time
- import socket
- import json
- import argparse
- import requests
- from pymavlink import mavutil
- from datetime import datetime
- from os import system
- import operator
- import urllib2
- from math import floor
-
- STATUS_REPORT_URL = "http://127.0.0.1:2770/report_service_status"
- MAVLINK2REST_URL = "http://127.0.0.1:4777"
-
- # holds the last status so we dont flood it
- last_status = ""
-
- # Nmea messages templates
- # https://www.trimble.com/oem_receiverhelp/v4.44/en/NMEA-0183messages_GGA.html
- gpgga = ("$GPGGA," # Message ID