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: run.cpp
- Revision:
- 88:0fc5df2fddcb
- Parent:
- 87:981895e1d4f2
- Child:
- 89:316c20d3184c
--- a/run.cpp Fri Jan 07 09:49:19 2022 +0000
+++ b/run.cpp Wed Jan 12 07:00:08 2022 +0000
@@ -9,6 +9,8 @@
readEEPROM(eeprom_address, eeprom_pointeraddress, read_calib.c, N_EEPROM*4);
wait(3);
pos_tail = (int)read_calib.i[0];
+ roll_offset = (float)read_calib.i[10] / 200000.0f;
+ pitch_offset = (float)read_calib.i[11] / 200000.0f;
/*
agoffset[3] = float(read_calib.i[7]);
agoffset[4] = float(read_calib.i[8]);