Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MatrixMath LPS25HB_I2C LSM9DS1 Matrix2 PIDcontroller LoopTicker SBUS_without_mainfile UsaPack solaESKF_wind Vector3 CalibrateMagneto FastPWM
Diff: global.hpp
- Revision:
- 63:851e96f54a86
- Parent:
- 61:c05353850017
- Child:
- 65:37573daaa909
diff -r ef10fd919f7b -r 851e96f54a86 global.hpp
--- a/global.hpp Wed Jun 09 07:50:18 2021 +0000
+++ b/global.hpp Tue Jun 22 07:01:20 2021 +0000
@@ -40,13 +40,23 @@
struct valuePack
{
+ int day;
+ int ms;
+ float time;
float dt;
int count;
float acc[3];
float gyro[3];
float mag[3];
float rpy[3];
- float rpy_g[3];
+ float de;
+ float deobj;
+};
+
+struct timePack
+{
+ int day;
+ int ms;
};
// var
@@ -83,6 +93,10 @@
extern MotionSensorDataUnits mdata;
extern float magval[3];
+// elevator
+extern float de;
+extern float deobj;
+
// position
extern Vector3 rpy; // x:roll y:pitch z:yaw
extern Vector3 rpy_g; // x:roll y:pitch z:yaw
@@ -120,7 +134,11 @@
//// UsaPack
extern const int tail_address[3];
+extern const int time_address;
extern valuePack posValues[3];
+extern Timer system_dt;
+extern timePack broadcast_time;
+extern timePack system_time;
// function