From 0fd4d02276aaf0764d5733916c19c56de35fa3ae Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Jun 2022 18:11:17 +1000 Subject: [PATCH] mavutil: add comments describing units in location object --- mavutil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mavutil.py b/mavutil.py index 9a093d9f3..da22dffbd 100644 --- a/mavutil.py +++ b/mavutil.py @@ -75,9 +75,9 @@ def u_ord(c): class location(object): '''represent a GPS coordinate''' def __init__(self, lat, lng, alt=0, heading=0): - self.lat = lat - self.lng = lng - self.alt = alt + self.lat = lat # in degrees + self.lng = lng # in degrees + self.alt = alt # in metres self.heading = heading def __str__(self):