Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HEV - High Energy Ventilator
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
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
Projects
HEV - High Energy Ventilator
Commits
7ae805f6
Commit
7ae805f6
authored
4 years ago
by
Dónal Murray
Browse files
Options
Downloads
Patches
Plain Diff
Rename variables in CommsLLI to fit naming scheme
parent
e69f2b94
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
raspberry-dataserver/CommsLLI.py
+4
-5
4 additions, 5 deletions
raspberry-dataserver/CommsLLI.py
with
4 additions
and
5 deletions
raspberry-dataserver/CommsLLI.py
+
4
−
5
View file @
7ae805f6
...
...
@@ -30,13 +30,13 @@ class CommsLLI:
self
.
_data
=
asyncio
.
Queue
(
maxsize
=
self
.
_queue_size
,
loop
=
self
.
_loop
)
# acks from arduino
self
.
_dv
A
larms
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
self
.
_dv
C
ommands
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
self
.
_dv
D
ata
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
self
.
_dv
_a
larms
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
self
.
_dv
_c
ommands
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
self
.
_dv
_d
ata
=
asyncio
.
Event
(
loop
=
self
.
_loop
)
# maps between address and queues/events/timeouts
self
.
_queues
=
{
0xC0
:
self
.
_alarms
,
0x80
:
self
.
_commands
,
0x40
:
self
.
_data
}
self
.
_timeouts
=
{
0xC0
:
10
,
0x80
:
50
,
0x40
:
200
}
self
.
_acklist
=
{
0xC0
:
self
.
_dv
A
larms
,
0x80
:
self
.
_dv
C
ommands
,
0x40
:
self
.
_dv
D
ata
}
self
.
_acklist
=
{
0xC0
:
self
.
_dv
_a
larms
,
0x80
:
self
.
_dv
_c
ommands
,
0x40
:
self
.
_dv
_d
ata
}
# receive
#self._payloadrecv = asyncio.Queue(maxsize=self._queue_size, loop=self._loop)
...
...
@@ -175,7 +175,6 @@ class CommsLLI:
@payloadrecv.setter
def
payloadrecv
(
self
,
payload
):
for
callback
in
self
.
_observers
:
# peek at the leftmost item, don't pop until receipt confirmed
callback
(
payload
)
def
bind_to
(
self
,
callback
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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