Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Proyecto Smart Watch
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Leonardo Martinez Hornak
Proyecto Smart Watch
Commits
436c5424
Commit
436c5424
authored
3 years ago
by
Leonardo Martinez Hornak
Browse files
Options
Downloads
Patches
Plain Diff
AGC error with None values fixed
parent
d33dc620
Branches
python_app
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/smartwatch.py
+5
-14
5 additions, 14 deletions
software/smartwatch.py
with
5 additions
and
14 deletions
software/smartwatch.py
+
5
−
14
View file @
436c5424
...
...
@@ -12,8 +12,6 @@ from matplotlib.animation import FuncAnimation
from
types
import
SimpleNamespace
from
enum
import
Enum
import
threading
import
random
from
threading
import
Thread
TIME_OUT
=
0.5
#Time out used for refreshing the User Interface
...
...
@@ -173,10 +171,11 @@ class Application(tk.Frame):
maxValue
=
0
minValue
=
0
for
p
in
copyOfChartQueue
:
if
p
>
maxValue
:
maxValue
=
p
if
p
<
minValue
:
minValue
=
p
if
(
type
(
p
)
==
int
):
if
p
>
maxValue
:
maxValue
=
p
if
p
<
minValue
:
minValue
=
p
self
.
ax
.
cla
()
...
...
@@ -207,12 +206,4 @@ if __name__ == '__main__':
t
.
daemon
=
True
t
.
start
()
#Test thread (DELETE)
def
work
():
threading
.
Timer
(
0.1
,
work
).
start
()
guiRef
.
ppgQueue
.
put
(
random
.
randrange
(
-
5
,
5
))
work
()
app
.
mainloop
()
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