Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed Autonomous Networked Control Lab
MicroCART
Commits
a767fd60
Commit
a767fd60
authored
1 year ago
by
sfrana
Browse files
Options
Downloads
Patches
Plain Diff
slightly modified cf connection
parent
a0e72c2d
No related branches found
No related tags found
5 merge requests
!106
Adding Pycrocart 2.1
,
!104
adding cflib to this branch
,
!103
Updating develop to current state of master branch
,
!98
Pycrocart 2.1 will
,
!94
Merge cflib adapter into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cflib_groundstation/crazyflie_connection.py
+2
-2
2 additions, 2 deletions
cflib_groundstation/crazyflie_connection.py
with
2 additions
and
2 deletions
cflib_groundstation/crazyflie_connection.py
+
2
−
2
View file @
a767fd60
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment