Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
logger_uart_parse.py
Go to the documentation of this file.
1
import
struct
2
3
with open(
'uart_log.bin'
,
'rb'
)
as
data:
4
with open(
'converted.csv'
,
'w'
)
as
out:
5
out.write(
"sync,nr,gyro,,,accelero,,,phi/100,theta/100,psi/100\n"
)
6
while
(1):
7
sync, nr, g1, g2, g3, s1, s2, s3, a1, a2, a3, crc = struct.unpack(
'<H10hB'
, data.read(23))
8
out.write(hex(sync) +
","
+ str(nr) +
","
+ str(g1) +
","
+ str(g2) +
","
+ str(g3) +
","
+ str(s1) +
","
+ str(s2) +
","
+ str(s3) +
","
+ str(a1) +
","
+ str(a2) +
","
+ str(a3) +
"\n"
)
sw
airborne
modules
loggers
logger_uart_parse.py
Generated on Sat Feb 9 2019 07:05:50 for Paparazzi UAS by
1.8.8