Commit d7dd9295 authored by roangel's avatar roangel
Browse files

fixed some small bugs in python

parent 4f851ccb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.2, 2017-08-21T11:11:11. -->
<!-- Written by QtCreator 4.0.2, 2017-08-21T19:05:09. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -88,6 +88,7 @@ class PPSRadioClient:
def connect(self):
self.status = CONNECTING
self._cf.open_link(link_uri)
def _data_received_callback(self, timestamp, data, logconf):
#print "log of stabilizer and battery: [%d][%s]: %s" % (timestamp, logconf.name, data)
batteryVolt = Float32()
......@@ -164,8 +165,8 @@ class PPSRadioClient:
def crazyRadioCommandCallback(data):
"""Callback to tell CrazyRadio to reconnect"""
if data = CMD_RECONNECT: # reconnect, check status first and then do whatever needs to be done
if self.status = DISCONNECTED:
if data == CMD_RECONNECT: # reconnect, check status first and then do whatever needs to be done
if self.status == DISCONNECTED:
self.connect()
def controlCommandCallback(data):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment