Script pour chopper l'output de la série et les foutre sous tableau
This commit is contained in:
parent
ca2bf3eba1
commit
249d3941d6
1 changed files with 13 additions and 0 deletions
13
Perso/serialToCSV.sh
Executable file
13
Perso/serialToCSV.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
||||||
|
|
||||||
|
rm -f ./serialOutput/serialOutput.csv
|
||||||
|
touch ./serialOutput/serialOutput.csv
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
read line < /dev/ttyACM0
|
||||||
|
echo $line >> ./serialOutput/serialOutput.csv
|
||||||
|
done
|
||||||
|
|
||||||
|
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py
|
Loading…
Add table
Reference in a new issue