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:
- 87:981895e1d4f2
- Parent:
- 85:0b14a2a600fc
- Child:
- 88:0fc5df2fddcb
--- a/servo.cpp Thu Dec 16 12:19:18 2021 +0000
+++ b/servo.cpp Fri Jan 07 09:49:19 2022 +0000
@@ -26,13 +26,13 @@
switch(pos_tail)
{
case 0: //left
- deobj = derc-darc;
+ deobj = derc+darc;
break;
case 1: //center
deobj = derc;
break;
case 2: //right
- deobj = derc+darc;
+ deobj = derc-darc;
break;
default: // error situation
deobj = 0.0f;