uhd/mpm/python/usrp_mpm
Martin Braun d7ba6ae7c2 mpm: gpsd_iface: Make GPGGA generation more robust
The GPGGA string generation relies on TPV and SKY messages being
accurate, meaning they are a list of dictionaries. There have been cases
where this was inaccurate (an empty list was returned). MPM would show
errors as such:

[ERROR] [MPM.RPCServer] Uncaught exception in method get_mb_sensor :list
index out of range
 Traceback (most recent call last):
   File "/usr/lib/python3.7/site-packages/usrp_mpm/rpc_server.py", line
   184, in new_claimed_function
       return function(*args)
         File
	 "/usr/lib/python3.7/site-packages/usrp_mpm/periph_manager/base.py",
	 line 1000, in get_mb_sensor
	     self, self.mboard_sensor_callback_map.get(sensor_name)
	       File
	       "/usr/lib/python3.7/site-packages/usrp_mpm/gpsd_iface.py",
	       line 313, in get_gps_gpgga_sensor
	           tpv_sensor_data = gps_info.get('tpv', [{}])[0]
		   IndexError: list index out of range

This is a patch to check that the lists are not empty before directly
referencing index 0 therein.
2021-06-03 09:35:09 -05:00
..
chips fixup! ic_reg_maps: Remove SPCC core reg map 2021-05-28 05:48:50 -07:00
cores cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
dboard_manager mpm: mg: periphs: Read lowband lo lock status from cpld 2021-04-19 12:42:33 -05:00
periph_manager mpm: Remove helper classes from RPC API 2021-06-03 09:34:37 -05:00
simulator sim: Move SelectableQueue and SendWrapper 2020-10-28 15:25:48 -05:00
sys_utils mpm: sys_utils: add libgpiod-based Gpio helper 2021-06-03 09:34:55 -05:00
xports sim: Lay Groundwork for Simulator 2020-10-07 15:29:19 -05:00
__init__.py.in sim: Lay Groundwork for Simulator 2020-10-07 15:29:19 -05:00
aurora_control.py
bfrfs.py
bist.py mpm: Remove references to rfnoc_num_blocks 2021-04-12 15:14:45 -05:00
CMakeLists.txt mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
components.py mpm: n3xx: Factor out component updating 2018-07-11 12:42:45 -07:00
discovery.py mpm: remove unnecessary imports 2021-05-20 14:57:47 -05:00
e31x_legacy_eeprom.py mpm: e31x: Accept FF terminated strings in eeprom 2020-09-04 11:38:27 -07:00
eeprom.py mpm: Add MB-EEPROMv3 2019-05-10 16:59:58 -07:00
ethdispatch.py mpm: Add support for internal Ethernet interface 2020-07-16 10:00:12 -05:00
fpga_bit_to_bin.py
gpsd_iface.py mpm: gpsd_iface: Make GPGGA generation more robust 2021-06-03 09:35:09 -05:00
mpmlog.py fixup! mpm: Use prefs API in logging module 2020-12-04 12:07:16 -08:00
mpmtypes.py mpm: add FPGA type to the info returned during discovery 2021-05-20 14:57:47 -05:00
mpmutils.py mpm: utils: print error on minor compat number mismatch conditionally 2020-07-13 15:22:59 -05:00
prefs.py docs: Add comments on mpm.conf 2020-07-09 00:39:11 -07:00
process_manager.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
rpc_server.py mpm: add FPGA type to the info returned during discovery 2021-05-20 14:57:47 -05:00
test_bfrfs.py
tlv_eeprom.py mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
user_eeprom.py mpm: Factor out user EEPROM code into own module 2018-12-20 14:57:54 -08:00