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.
Dependents: Tourobo2022_TBCMotorDriver
Revision 6:4074aded9b9d, committed 2021-12-30
- Comitter:
- YutaTogashi
- Date:
- Thu Dec 30 16:07:37 2021 +0000
- Parent:
- 5:a3aa705d9023
- Commit message:
- 20211231 add resetFunction now=0.0f,before=0.0f
Changed in this revision
| Pid.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Pid.cpp Wed Mar 25 11:15:15 2020 +0000
+++ b/Pid.cpp Thu Dec 30 16:07:37 2021 +0000
@@ -51,6 +51,8 @@
void Pid::reset() {
duty = 0.0f;
+ now = 0.0f;
+ before = 0.0f;
}
float Pid::getDuty() {