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.cpp
- Revision:
- 77:b06a5f8554f4
- Parent:
- 73:be7a8b8188de
diff -r f6617891a867 -r b06a5f8554f4 global.cpp
--- a/global.cpp Tue Sep 07 06:19:42 2021 +0000
+++ b/global.cpp Wed Sep 29 01:44:17 2021 +0000
@@ -9,8 +9,9 @@
SBUS sbus(PD_5, PD_6);
// sensor
-MPU6050 accelgyro;
-MAG3110 mag_sensor(PB_9,PB_8);
+//MPU6050 accelgyro;
+//MAG3110 mag_sensor(PB_9,PB_8);
+LSM9DS1 lsm(i2c); //PmodNAV
CalibrateMagneto magCalibrator;
// io
@@ -31,7 +32,7 @@
int16_t ax, ay, az;
int16_t gx, gy, gz;
-MotionSensorDataUnits mdata;
+//MotionSensorDataUnits mdata;
float magval[3] = {1.0f, 0.0f, 0.0f};
// elevator