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: mbed
Diff: ActiveCell.h
- Revision:
- 10:32c65de8ff37
- Parent:
- 9:699054d8510b
diff -r 699054d8510b -r 32c65de8ff37 ActiveCell.h
--- 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;
}
};