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:
- 118:97ffe77b6f38
- Parent:
- 109:27ae949bc38e
- Child:
- 120:9f4725deb5a6
--- a/global.cpp Wed Mar 30 04:47:36 2022 +0000 +++ b/global.cpp Wed Mar 30 05:30:13 2022 +0000 @@ -3,7 +3,7 @@ // var // communication -Serial pc(USBTX, USBRX); +UsaPack pc(USBTX, USBRX, 115200); I2C i2c(PB_9,PB_8); // sda, scl UsaPack tail(PG_14, PG_9, 115200); // log - tail SBUS sbus(PD_5, PD_6); @@ -48,6 +48,8 @@ float deobj; float dr; float drobj; +float dTl; +float dTr; // position Matrix SensorAlignmentAG(3,3); @@ -101,6 +103,8 @@ const int time_address = 4444; valuePack posValues; updatePack updateValues; +receivePack rp; +sendPack sp; Timer system_dt; float mapfloat(float x, float in_min, float in_max, float out_min, float out_max)