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_Nucleo_16_bits
Revision 17:a5af05cade7e, committed 2019-10-31
- Comitter:
- tuk4
- Date:
- Thu Oct 31 14:46:26 2019 +0000
- Parent:
- 16:a8a0a1e3ddb1
- Commit message:
- Committed on 31/10/2019
Changed in this revision
| PID.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PID.cpp Tue Oct 29 16:47:10 2019 +0000
+++ b/PID.cpp Thu Oct 31 14:46:26 2019 +0000
@@ -75,8 +75,8 @@
// As we use mm/s for speed unit and we convert all mesure to this unit
// Converting step to millimeters
- _measDistG = ((double)PositionG - (double)oldPositionG) / 42.415;
- _measDistD = ((double)PositionD - (double)oldPositionD) / 42.415;
+ _measDistG = ((double)PositionG - (double)oldPositionG) / 54.881;
+ _measDistD = ((double)PositionD - (double)oldPositionD) / 54.881;
// Converting position to speed
_measSpeedG = 1000.0 * _measDistG;