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:
- 82:3daf57031f65
- Parent:
- 80:31e0ffc82931
- Child:
- 85:0b14a2a600fc
diff -r b1526a4eec17 -r 3daf57031f65 servo.cpp
--- a/servo.cpp Wed Sep 29 06:49:22 2021 +0000
+++ b/servo.cpp Wed Sep 29 12:46:07 2021 +0000
@@ -50,15 +50,8 @@
de = pitchPID.compute()+pitchratePID.compute();
if(de<-1.0f){de = -1.0f;}
if(de>1.0f){de = 1.0f;}
-
- if (pos_tail == 0)
- {
- scaledServoOut[0]=-de;
- }
- else
- {
- scaledServoOut[0]=de;
- }
+
+ scaledServoOut[0]=de;
float LP_servo = 0.2;
for(int i = 0; i < sizeof(servoOut)/sizeof(servoOut[0]); i++)