HAPSRG / Mbed 2 deprecated HAPStail

Dependencies:   mbed MatrixMath LPS25HB_I2C LSM9DS1 Matrix2 PIDcontroller LoopTicker SBUS_without_mainfile UsaPack solaESKF_wind Vector3 CalibrateMagneto FastPWM

Revision:
63:851e96f54a86
Parent:
62:ef10fd919f7b
Child:
66:a210d7130a44
--- a/servo.cpp	Wed Jun 09 07:50:18 2021 +0000
+++ b/servo.cpp	Tue Jun 22 07:01:20 2021 +0000
@@ -14,7 +14,7 @@
     //pc.printf("rc:%f\r\n",rc[1]);
     
     // 自身の位置に応じてエレベータ舵角を決定する
-    float deobj = 0.0f;
+    deobj = 0.0f;
     switch(pos_tail)
     {
     case 0: //left
@@ -42,7 +42,7 @@
     pitchratePID.setProcessValue(gyro.y);
     //目標値のセット
     pitchPID.setSetPoint(pitchobj); //目標の設定
-    float de = pitchPID.compute()+pitchratePID.compute();
+    de = pitchPID.compute()+pitchratePID.compute();
     
     scaledServoOut[0]=de;