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
Revision 1:d13aecf8f857, committed 2016-02-29
- Comitter:
- baba2357
- Date:
- Mon Feb 29 07:12:47 2016 +0000
- Parent:
- 0:ca3b8ac520a5
- Commit message:
- qqqq;
Changed in this revision
| SPE.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPE.h Mon Feb 29 07:00:50 2016 +0000
+++ b/SPE.h Mon Feb 29 07:12:47 2016 +0000
@@ -3,9 +3,9 @@
#define PHI 38
Int X=0;
Int Y=0;
-void XY(int dx,int dy,int w){
- ddx=(dx*cos(w-45)+dy*(-1)*sin(w-45))*FI;
- ddy=(dx*sin(w-45)+dy*cos(w-45))*FI;
+void XY(double dx,double dy,int w){
+ ddx=(dx*cos(w-45)+dy*(-1)*sin(w-45))*FI*PI*2.0/500.0;
+ ddy=(dx*sin(w-45)+(dy*cos(w-45))*FI*PI*2.0/500.0;
X=+ddx;
Y=+ddy;
}