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:
- 63:851e96f54a86
- Parent:
- 62:ef10fd919f7b
- Child:
- 69:0caaad87cf1d
--- a/global.cpp Wed Jun 09 07:50:18 2021 +0000
+++ b/global.cpp Tue Jun 22 07:01:20 2021 +0000
@@ -34,6 +34,10 @@
MotionSensorDataUnits mdata;
float magval[3] = {1.0f, 0.0f, 0.0f};
+// elevator
+float de;
+float deobj;
+
// position
Vector3 rpy(0.0f, 0.0f, 0.0f); // x:roll y:pitch z:yaw
Vector3 rpy_g(0.0f, 0.0f, 0.0f); // x:roll y:pitch z:yaw
@@ -71,7 +75,11 @@
// UsaPack
const int tail_address[3] = {1111, 2222, 3333};
+const int time_address = 4444;
valuePack posValues[3];
+Timer system_dt;
+timePack broadcast_time;
+timePack system_time;
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max)
{