diff --git a/src/ugv.py b/src/ugv.py index af84925..9056569 100644 --- a/src/ugv.py +++ b/src/ugv.py @@ -1,4 +1,6 @@ """Autonomous UGV""" +import json +from coms import Coms class UGV: def __init__(self): @@ -8,3 +10,13 @@ def __init__(self): def setup_vehcicle(self): #TODO return None + + def coms_callback(self, message, _): + '''callback for radio messages''' + data = json.loads(message.data) + print(data['type']) + + def setup_coms(self): + '''sets up communication radios''' + print('Initializing Coms') + self.coms = Coms(self.configs, self.coms_callback) \ No newline at end of file