Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
logger_uart_parse.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
3
import
struct
4
5
with
open
(
'uart_log.bin'
,
'rb'
)
as
data:
6
with
open
(
'converted.csv'
,
'w'
)
as
out:
7
out.write
(
"sync,nr,gyro,,,accelero,,,phi/100,theta/100,psi/100\n"
)
8
while
(1):
9
sync, nr, g1, g2, g3, s1, s2, s3, a1, a2, a3, crc =
struct.unpack
(
'<H10hB'
,
data.read
(23))
10
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"
)
foo
uint16_t foo
Definition
main_demo5.c:58
sw
airborne
modules
loggers
logger_uart_parse.py
Generated on Fri Mar 14 2025 21:37:47 for Paparazzi UAS by
1.9.8