部内対抗C班 / Mbed 2 deprecated self_position_expectation

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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;
  }