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: Encoder
Diff: SpeedController.cpp
- Revision:
- 10:daf0e763bf35
- Parent:
- 6:d110c276aa5a
--- a/SpeedController.cpp	Sat Aug 10 05:36:57 2019 +0000
+++ b/SpeedController.cpp	Thu Nov 14 07:58:38 2019 +0000
@@ -59,6 +59,13 @@
         pwm_B_=-duty;
     }
 }
+double SpeedControl::getDutyF(){
+    return pwm_F_.read();
+}
+
+double SpeedControl::getDutyB(){
+    return pwm_B_.read();
+}
 
 void SpeedControl::setPDparam(double kp,double kd)
 {