Skip to content
Snippets Groups Projects
Commit a767fd60 authored by sfrana's avatar sfrana :cloud_tornado:
Browse files

slightly modified cf connection

parent a0e72c2d
No related branches found
No related tags found
5 merge requests!106Adding Pycrocart 2.1,!104adding cflib to this branch,!103Updating develop to current state of master branch,!98Pycrocart 2.1 will,!94Merge cflib adapter into main
...@@ -82,6 +82,8 @@ class CrazyflieConnection: ...@@ -82,6 +82,8 @@ class CrazyflieConnection:
self.scf.close_link() self.scf.close_link()
self.scf = None self.scf = None
self.is_connected = False self.is_connected = False
# disconnect the commander from setpointhandler
self.setpoint_handler.disconnectCommander()
def Debug(): def Debug():
raise Exception raise Exception
...@@ -171,12 +173,10 @@ class CrazyflieConnection: ...@@ -171,12 +173,10 @@ class CrazyflieConnection:
if self.scf.is_link_open(): if self.scf.is_link_open():
val = self.scf.cf.param.values[group][name] val = self.scf.cf.param.values[group][name]
except AttributeError: except AttributeError:
val = -1.234567 val = -1.234567
pass pass
data = bytearray(group) data = bytearray(group)
data.append(name) data.append(name)
data.append(val) data.append(val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment