Fixed stupid mistake when parsing observation-dictss

This commit is contained in:
Dominik Moritz Roth 2022-08-22 18:01:27 +02:00
parent 361b118593
commit 291c9c6320

View File

@ -22,7 +22,7 @@ def parseObs(obsConf):
if obsConf['type'] == 'State': if obsConf['type'] == 'State':
conf = {k: v for k, v in obsConf.items() if k not in ['type']} conf = {k: v for k, v in obsConf.items() if k not in ['type']}
return observables.StateObservable(conf) return observables.StateObservable(**conf)
elif obsConf['type'] == 'Compass': elif obsConf['type'] == 'Compass':
conf = {k: v for k, v in obsConf.items() if k not in ['type']} conf = {k: v for k, v in obsConf.items() if k not in ['type']}
return observables.CompassObservable(**conf) return observables.CompassObservable(**conf)