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: servo.cpp
- Revision:
- 63:851e96f54a86
- Parent:
- 62:ef10fd919f7b
- Child:
- 66:a210d7130a44
diff -r ef10fd919f7b -r 851e96f54a86 servo.cpp
--- 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;