Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon Lipovšek
CanSat_2021_22
Commits
bace661a
Commit
bace661a
authored
Jun 21, 2022
by
Amadej Arh
Browse files
izboljsava
parent
014bd8fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Program za procesiranje podatkov/graf/run.sh
View file @
bace661a
#!/usr/bin/env bash
gcc
-Wall
-Wextra
-O2
view.c
-oview
tail
-c
+1
-F
beshrukt.uk2 | ./view out.pgm 640 480
\ No newline at end of file
tail
-c
+1
-F
beshrukt.uk2 | ./view out.pgm 640 480
>
/dev/null &
python serjial.py
\ No newline at end of file
Program za procesiranje podatkov/graf/serjial.py
View file @
bace661a
...
...
@@ -8,7 +8,11 @@ import time
def
main
():
with
open
(
"logfile"
,
"a+"
)
as
log
:
with
open
(
"beshrukt.uk2"
,
"wb+"
)
as
smolOut
:
ser
=
serial
.
Serial
(
"/dev/ttyUSB1"
,
19200
)
try
:
ser
=
serial
.
Serial
(
"/dev/ttyUSB1"
,
19200
)
except
:
ser
=
serial
.
Serial
(
"/dev/ttyUSB0"
,
19200
)
print
(
ser
.
name
)
print
(
"
\033
[2J"
)
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment