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:
- 123:0a74e696f7a6
- Parent:
- 121:1d5b3e1f0d21
- Child:
- 124:59efdd87c211
--- a/global.hpp Tue Apr 05 06:57:21 2022 +0000
+++ b/global.hpp Mon Apr 11 09:39:30 2022 +0000
@@ -53,6 +53,8 @@
float vi[3];
float att_dt;
int ap_flag;
+ float voltage;
+ float current;
};
struct updatePack
@@ -111,6 +113,8 @@
//extern UsaPack sensor1;
//extern UsaPack sensor2;
extern CalibrateMagneto magCalibrator;
+extern AnalogIn ain_v;
+extern AnalogIn ain_i;
// io
extern DigitalIn userButton;
@@ -140,6 +144,9 @@
extern int16_t gx, gy, gz;
extern float magval[3];
+extern float voltage;
+extern float current;
+
// elevator
extern float de;
extern float deobj;