SRM / Mbed 2 deprecated LabWork2VFHnew

Dependencies:   mbed

Revision:
10:32c65de8ff37
Parent:
9:699054d8510b
--- a/ActiveCell.h	Mon Apr 08 21:25:14 2019 +0000
+++ b/ActiveCell.h	Tue Apr 09 08:52:25 2019 +0000
@@ -22,7 +22,7 @@
     float amplitude;
     int sectorK;
     //resolution - if changing change also secVal in main & calcSectors
-    static const int res=12;
+    static const int res=10;
 
     ActiveCell(){
         angle=0;
@@ -63,7 +63,7 @@
         angle = atan2((float)yt-y0,(float)xt-x0)*180/3.14159265358979323846f;
         sectorK=angle/res;
         if(sectorK<0)
-            sectorK=30+sectorK;
+            sectorK=36+sectorK;
     }
 };