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: HIDScope MODSERIAL QEI TextLCD mbed
Diff: Mode.cpp
- Revision:
- 27:f62e450bb411
- Parent:
- 19:6c0245063b96
--- a/Mode.cpp	Fri Oct 16 09:12:51 2015 +0000
+++ b/Mode.cpp	Fri Oct 16 12:37:26 2015 +0000
@@ -2,9 +2,7 @@
 
 double mode;
 
-int Mode(double y, double ymax, double thresholdlow, double thresholdmid, double thresholdhigh)
-{   
-    
+int Mode(double y, double thresholdlow, double thresholdmid, double thresholdhigh){       
     if ( y <= thresholdlow){
         mode = 1;
         }
@@ -14,6 +12,5 @@
     if (y > thresholdmid && mode == 1){
         mode = 2;
         }
-
     return mode;
 }