Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
yids
kukuruku-fork
Commits
311024ad
Commit
311024ad
authored
Jul 26, 2016
by
Jenda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove display artifacts when more spectrum measurements are sent in one frame
parent
c9d1aa3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
client/kukuruku-gui.py
client/kukuruku-gui.py
+7
-6
No files found.
client/kukuruku-gui.py
View file @
311024ad
...
...
@@ -196,17 +196,18 @@ def fft_cb(d, frameno, timestamp):
wfofs
=
(
wfofs
+
1
)
%
da_height
d
=
d
[
conf
.
fftw
:]
pygame
.
draw
.
line
(
screen
,
BLACK
,
[
0
,
wfofs
],
[
conf
.
borderleft
+
conf
.
fftw
,
wfofs
])
pygame
.
draw
.
line
(
screen
,
WHITE
,
[
0
,
(
wfofs
+
1
)
%
da_height
],
[
conf
.
borderleft
+
conf
.
fftw
,
(
wfofs
+
1
)
%
da_height
])
if
not
lastfft
:
lastfft
=
data
on_fftscale
(
None
)
# use the first measurement to at least coarsely adjust the color scheme
lastfft
=
data
pygame
.
draw
.
line
(
screen
,
BLACK
,
[
0
,
wfofs
],
[
conf
.
borderleft
+
conf
.
fftw
,
wfofs
])
pygame
.
draw
.
line
(
screen
,
WHITE
,
[
0
,
(
wfofs
+
1
)
%
da_height
],
[
conf
.
borderleft
+
conf
.
fftw
,
(
wfofs
+
1
)
%
da_height
])
pygame
.
display
.
update
()
def
sql_cb
(
rotation
,
decimation
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment