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.
Diff: Swing.h
- Revision:
- 22:4127fcf8c7d7
- Parent:
- 7:4aa57a35ec0b
--- a/Swing.h Thu Nov 05 11:43:43 2015 +0000
+++ b/Swing.h Sat Nov 07 00:16:09 2015 +0000
@@ -44,7 +44,7 @@
double swingSita=0.0;
inline void mesureSwing() {
PulsesSwing = ( double )SwingSens.getPulses();
- swingRadVelocity = (((PulsesSwing - PrefPulsesSwing) / 3000.0) * 2.0 * PI) / RATE;
+ swingRadVelocity = ((PulsesSwing - PrefPulsesSwing / 360.0) * 2.0 * PI ) / RATE;
PrefPulsesSwing = PulsesSwing;
}