Repository navigation
Expand file tree
/
Copy pathmy_custom_patch_file.patch
More file actions
170 lines (139 loc) · 5.51 KB
/
Copy pathmy_custom_patch_file.patch
File metadata and controls
170 lines (139 loc) · 5.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
diff --git a/platforms/common/include/px4_platform_common/defines.h b/platforms/common/include/px4_platform_common/defines.h
index 38d7b4201f..6c7fb2abcd 100644
--- a/platforms/common/include/px4_platform_common/defines.h
+++ b/platforms/common/include/px4_platform_common/defines.h
@@ -39,8 +39,8 @@
#pragma once
-#include <sys/ioctl.h>
-#include <px4_boardconfig.h>
+//#include <sys/ioctl.h>
+//#include <px4_boardconfig.h>
/****************************************************************************
diff --git a/src/lib/geo/geo.h b/src/lib/geo/geo.h
index 30cc10b6fe..7ea7acafbe 100644
--- a/src/lib/geo/geo.h
+++ b/src/lib/geo/geo.h
@@ -45,13 +45,16 @@
#pragma once
+#include "ecl.h"
+
+
#include <stdbool.h>
#include <stdint.h>
-#include <drivers/drv_hrt.h>
+//#include <drivers/drv_hrt.h>
-#include <lib/mathlib/mathlib.h>
-#include <lib/matrix/matrix/math.hpp>
+#include <mathlib/mathlib.h>
+#include <matrix/math.hpp>
static constexpr float CONSTANTS_ONE_G = 9.80665f; // m/s^2
static constexpr double CONSTANTS_RADIUS_OF_EARTH = 6371000; // meters (m)
diff --git a/src/lib/mathlib/math/Functions.hpp b/src/lib/mathlib/math/Functions.hpp
index 7fb54442d9..89adf7bcb2 100644
--- a/src/lib/mathlib/math/Functions.hpp
+++ b/src/lib/mathlib/math/Functions.hpp
@@ -42,7 +42,7 @@
#include "Limits.hpp"
#include <px4_platform_common/defines.h>
-#include <matrix/matrix/math.hpp>
+#include <matrix/math.hpp>
namespace math
{
diff --git a/src/modules/ekf2/EKF/aid_sources/EstimatorAidSource.hpp b/src/modules/ekf2/EKF/aid_sources/EstimatorAidSource.hpp
index 6d6c9e8ec2..55c45932cf 100644
--- a/src/modules/ekf2/EKF/aid_sources/EstimatorAidSource.hpp
+++ b/src/modules/ekf2/EKF/aid_sources/EstimatorAidSource.hpp
@@ -36,7 +36,7 @@
#include <cstdint>
-#include <lib/matrix/matrix/math.hpp>
+#include <matrix/math.hpp>
// forward declarations
class Ekf;
diff --git a/src/modules/ekf2/EKF/drag_fusion.cpp b/src/modules/ekf2/EKF/drag_fusion.cpp
index 5b4baedf12..6176646b6b 100644
--- a/src/modules/ekf2/EKF/drag_fusion.cpp
+++ b/src/modules/ekf2/EKF/drag_fusion.cpp
@@ -41,7 +41,7 @@
#include <ekf_derivation/generated/compute_drag_y_innov_var_and_h.h>
#include <mathlib/mathlib.h>
-#include <lib/atmosphere/atmosphere.h>
+#include <atmosphere/atmosphere.h>
void Ekf::controlDragFusion(const imuSample &imu_delayed)
{
diff --git a/src/modules/ekf2/EKF/ekf_helper.cpp b/src/modules/ekf2/EKF/ekf_helper.cpp
index afff6dc0ca..1feff04e3c 100644
--- a/src/modules/ekf2/EKF/ekf_helper.cpp
+++ b/src/modules/ekf2/EKF/ekf_helper.cpp
@@ -42,7 +42,7 @@
#include "ekf.h"
#include <mathlib/mathlib.h>
-#include <lib/world_magnetic_model/geo_mag_declination.h>
+#include <world_magnetic_model/geo_mag_declination.h>
#include <cstdlib>
bool Ekf::isHeightResetRequired() const
diff --git a/src/modules/ekf2/EKF/estimator_interface.h b/src/modules/ekf2/EKF/estimator_interface.h
index e94d14b5e6..117380030f 100644
--- a/src/modules/ekf2/EKF/estimator_interface.h
+++ b/src/modules/ekf2/EKF/estimator_interface.h
@@ -71,7 +71,7 @@
# include "sensor_range_finder.hpp"
#endif // CONFIG_EKF2_RANGE_FINDER
-#include <lib/atmosphere/atmosphere.h>
+#include <atmosphere/atmosphere.h>
#include <matrix/math.hpp>
#include <mathlib/mathlib.h>
#include <mathlib/math/filter/AlphaFilter.hpp>
diff --git a/src/modules/ekf2/EKF/gps_checks.cpp b/src/modules/ekf2/EKF/gps_checks.cpp
index 71018df1c7..66634a3b5d 100644
--- a/src/modules/ekf2/EKF/gps_checks.cpp
+++ b/src/modules/ekf2/EKF/gps_checks.cpp
@@ -42,7 +42,7 @@
#include "ekf.h"
#if defined(CONFIG_EKF2_MAGNETOMETER)
-# include <lib/world_magnetic_model/geo_mag_declination.h>
+# include <world_magnetic_model/geo_mag_declination.h>
#endif // CONFIG_EKF2_MAGNETOMETER
#include <mathlib/mathlib.h>
diff --git a/src/modules/ekf2/EKF/imu_down_sampler.cpp b/src/modules/ekf2/EKF/imu_down_sampler.cpp
index 02f43a12f5..10c475ffe2 100644
--- a/src/modules/ekf2/EKF/imu_down_sampler.cpp
+++ b/src/modules/ekf2/EKF/imu_down_sampler.cpp
@@ -1,6 +1,6 @@
#include "imu_down_sampler.hpp"
-#include <lib/mathlib/mathlib.h>
+#include <mathlib/mathlib.h>
ImuDownSampler::ImuDownSampler(int32_t &target_dt_us) : _target_dt_us(target_dt_us)
{
diff --git a/src/modules/ekf2/EKF/output_predictor.h b/src/modules/ekf2/EKF/output_predictor.h
index ee5cc0f710..1b7fb44d74 100644
--- a/src/modules/ekf2/EKF/output_predictor.h
+++ b/src/modules/ekf2/EKF/output_predictor.h
@@ -39,7 +39,7 @@
#include "common.h"
#include "RingBuffer.h"
-#include <lib/geo/geo.h>
+#include <geo/geo.h>
class OutputPredictor
{
diff --git a/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.cpp b/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.cpp
index c8655827be..d465cd2273 100644
--- a/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.cpp
+++ b/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.cpp
@@ -35,7 +35,7 @@
#include <cstdlib>
-#include <lib/geo/geo.h> // CONSTANTS_ONE_G
+#include <geo/geo.h> // CONSTANTS_ONE_G
#include "derivation/generated/yaw_est_predict_covariance.h"
#include "derivation/generated/yaw_est_compute_measurement_update.h"
diff --git a/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.h b/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.h
index ec84ed06f9..37c6fb7842 100644
--- a/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.h
+++ b/src/modules/ekf2/EKF/yaw_estimator/EKFGSF_yaw.h
@@ -34,8 +34,8 @@
#ifndef EKF_EKFGSF_YAW_H
#define EKF_EKFGSF_YAW_H
-#include <lib/mathlib/mathlib.h>
-#include <lib/matrix/matrix/math.hpp>
+#include <mathlib/mathlib.h>
+#include <matrix/math.hpp>
static constexpr uint8_t N_MODELS_EKFGSF = 5;