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:
- 73:be7a8b8188de
- Parent:
- 71:62eb45ecffe9
- Child:
- 77:b06a5f8554f4
- Child:
- 79:aa2631950f46
diff -r 43dfa7a597e7 -r be7a8b8188de global.hpp
--- a/global.hpp Fri Aug 20 07:51:51 2021 +0000
+++ b/global.hpp Wed Aug 25 07:01:12 2021 +0000
@@ -43,20 +43,23 @@
{
int day;
int ms;
- float dt;
- int count;
+ float gyroBias[3];
+ float gyroBiasCov[6];
float acc[3];
float gyro[3];
float mag[3];
float rpy[3];
float de;
float deobj;
+ float rc[5];
};
-struct timePack
+struct updatePack
{
int day;
int ms;
+ float gyroBias[3];
+ float de_command;
};
// var
@@ -137,10 +140,9 @@
//// UsaPack
extern const int tail_address[3];
extern const int time_address;
-extern valuePack posValues[3];
+extern valuePack posValues;
+extern updatePack updateValues;
extern Timer system_dt;
-extern timePack broadcast_time;
-extern timePack system_time;
// function
@@ -160,8 +162,8 @@
// servo.cpp
extern void calcServoOut();
-// sd_eeprom.cpp
-extern void writeSdcard();
+// datatransfer.cpp
+extern void send2center();
extern void writeEEPROM(int address, unsigned int eeaddress, char *data, int size);
extern void readEEPROM(int address, unsigned int eeaddress, char *data, int size);