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.
Fork of 2015robot_main by
Diff: Swing.h
- Revision:
- 98:ffe1247b9784
- Parent:
- 95:deb2e75c42ff
- Child:
- 99:ee7f78d64c14
diff -r 5e6f513b26f2 -r ffe1247b9784 Swing.h
--- a/Swing.h Fri Oct 16 07:42:06 2015 +0000
+++ b/Swing.h Fri Oct 16 08:08:32 2015 +0000
@@ -43,7 +43,7 @@
double swingSita=0.0;
inline void mesureSwing() {
PulsesSwing = ( double )SwingSens.getPulses();
- swingRadVelocity = (((PulsesSwing - PrefPulsesSwing) / 3000.0) * 2 * PI) / RATE;
+ swingRadVelocity = (((PulsesSwing - PrefPulsesSwing) / 3000.0) * 2.0 * PI) / RATE;
PrefPulsesSwing = PulsesSwing;
}

