Skip to content

Commit 19386a4

Browse files
committed
nmea doc edits
1 parent 49b84ab commit 19386a4

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

gnss_lib_py/parsers/nmea.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class Nmea(NavData):
2222
"""
2323
def __init__(self, filename, msg_types=None,
2424
check=False, keep_raw=False, include_ecef=False):
25-
"""Read instance of NMEA file following NMEA 1803 standard.
25+
"""Read instance of NMEA file following NMEA 0183 standard.
2626
2727
This class uses the NMEA parser from `pynmea2`, which supports
28-
the NMEA 1803 standard [1]_.
28+
the NMEA 0183 standard [1]_.
2929
With the introduction of the NMEA 2300 standard, an extra field
3030
is added to the RMC message type, as seen in Page 1-5 in [2]_.
3131
@@ -145,7 +145,7 @@ def _row_map():
145145
'lon_float' : 'lon_rx_deg',
146146
'altitude' : 'alt_rx_m',
147147
'spd_over_grnd': 'vx_rx_mps',
148-
'true_course': 'heading_rx_deg_raw',
148+
'true_course': 'heading_raw_rx_deg',
149149
'true_course_rad' : 'heading_rx_rad'}
150150
return row_map
151151

@@ -157,10 +157,9 @@ def include_ecef(self):
157157
of Nmea that is input.
158158
"""
159159

160-
lla = np.vstack([self['lat_rx_deg'],
161-
self['lon_rx_deg'],
162-
self['alt_rx_m']])
163-
ecef = geodetic_to_ecef(lla)
160+
ecef = geodetic_to_ecef(self[['lat_rx_deg',
161+
'lon_rx_deg',
162+
'alt_rx_m']])
164163
self['x_rx_m'] = ecef[0,:]
165164
self['y_rx_m'] = ecef[1,:]
166165
self['z_rx_m'] = ecef[2,:]

0 commit comments

Comments
 (0)