Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
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
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
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
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
xsens.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 ENAC
3
*
4
* This file is part of paparazzi.
5
*
6
* paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with paparazzi; see the file COPYING. If not, write to
18
* the Free Software Foundation, 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*
21
*/
22
27
#ifndef XSENS_H
28
#define XSENS_H
29
30
#include "
std.h
"
31
#include "
math/pprz_algebra_float.h
"
32
#include "
math/pprz_geodetic_float.h
"
33
#include "
math/pprz_geodetic_int.h
"
34
35
#include "
xsens_parser.h
"
36
37
38
#if USE_GPS_XSENS
39
#include "
subsystems/gps.h
"
40
#endif
41
42
struct
XsensTime
{
43
int8_t
hour
;
44
int8_t
min
;
45
int8_t
sec
;
46
int32_t
nanosec
;
47
int16_t
year
;
48
int8_t
month
;
49
int8_t
day
;
50
};
51
52
struct
Xsens
{
53
struct
XsensTime
time
;
54
uint16_t
time_stamp
;
55
56
struct
FloatRates
gyro
;
57
struct
FloatVect3
accel
;
58
struct
FloatVect3
mag
;
59
60
struct
LlaCoor_f
lla_f
;
61
struct
FloatVect3
vel
;
62
63
struct
FloatQuat
quat
;
64
struct
FloatEulers
euler
;
65
66
struct
XsensParser
parser
;
67
volatile
bool
new_attitude
;
68
69
bool
gyro_available
;
70
bool
accel_available
;
71
bool
mag_available
;
72
73
#if USE_GPS_XSENS
74
struct
GpsState
gps
;
75
bool
gps_available
;
76
#endif
77
};
78
79
extern
struct
Xsens
xsens
;
80
81
extern
void
xsens_init
(
void
);
82
extern
void
xsens_periodic
(
void
);
83
extern
void
parse_xsens_msg
(
void
);
84
85
#endif
/* XSENS_H */
uint16_t
unsigned short uint16_t
Definition:
types.h:16
XsensTime::month
int8_t month
Definition:
xsens.h:48
Xsens::vel
struct FloatVect3 vel
NED velocity in m/s.
Definition:
xsens.h:61
XsensTime::year
int16_t year
Definition:
xsens.h:47
Xsens::mag_available
bool mag_available
Definition:
xsens.h:71
XsensTime::day
int8_t day
Definition:
xsens.h:49
xsens_periodic
void xsens_periodic(void)
Definition:
xsens.c:124
Xsens::time_stamp
uint16_t time_stamp
Definition:
xsens.h:54
Xsens::mag
struct FloatVect3 mag
Definition:
xsens.h:58
Xsens
Definition:
xsens.h:52
Xsens::gyro_available
bool gyro_available
Definition:
xsens.h:69
xsens_init
void xsens_init(void)
Definition:
xsens.c:113
Xsens::new_attitude
volatile bool new_attitude
Definition:
xsens.h:67
pprz_geodetic_int.h
Paparazzi fixed point math for geodetic calculations.
Xsens::euler
struct FloatEulers euler
Definition:
xsens.h:64
GpsState
data structure for GPS information
Definition:
gps.h:87
XsensTime::hour
int8_t hour
Definition:
xsens.h:43
pprz_algebra_float.h
Paparazzi floating point algebra.
Xsens::accel_available
bool accel_available
Definition:
xsens.h:70
Xsens::quat
struct FloatQuat quat
Definition:
xsens.h:63
parse_xsens_msg
void parse_xsens_msg(void)
Definition:
xsens.c:184
xsens
struct Xsens xsens
Definition:
xsens.c:109
XsensParser
Definition:
xsens_parser.h:46
FloatVect3
Definition:
pprz_algebra_float.h:54
FloatQuat
Roation quaternion.
Definition:
pprz_algebra_float.h:63
std.h
pprz_geodetic_float.h
Paparazzi floating point math for geodetic calculations.
Xsens::accel
struct FloatVect3 accel
Definition:
xsens.h:57
gps.h
Device independent GPS code (interface)
int16_t
signed short int16_t
Definition:
types.h:17
Xsens::parser
struct XsensParser parser
Definition:
xsens.h:66
xsens_parser.h
XsensTime::min
int8_t min
Definition:
xsens.h:44
int8_t
signed char int8_t
Definition:
types.h:15
Xsens::gyro
struct FloatRates gyro
Definition:
xsens.h:56
int32_t
signed long int32_t
Definition:
types.h:19
Xsens::time
struct XsensTime time
Definition:
xsens.h:53
XsensTime
Definition:
xsens.h:42
FloatEulers
euler angles
Definition:
pprz_algebra_float.h:84
Xsens::lla_f
struct LlaCoor_f lla_f
Definition:
xsens.h:60
gps
struct GpsState gps
global GPS state
Definition:
gps.c:69
XsensTime::sec
int8_t sec
Definition:
xsens.h:45
gps_available
bool gps_available
Definition:
gps_sim_hitl.c:36
XsensTime::nanosec
int32_t nanosec
Definition:
xsens.h:46
FloatRates
angular rates
Definition:
pprz_algebra_float.h:93
LlaCoor_f
vector in Latitude, Longitude and Altitude
Definition:
pprz_geodetic_float.h:54
sw
airborne
modules
ins
xsens.h
Generated on Tue Feb 1 2022 13:51:15 for Paparazzi UAS by
1.8.17