UVW 3 phases Brushless DC motor control

Dependencies:   QEI mbed-rtos mbed

Fork of DCmotor by manabu kosaka

Revision:
13:791e20f1af43
Parent:
12:a4b17bb682eb
--- a/fast_math.h	Fri Dec 21 22:06:56 2012 +0000
+++ b/fast_math.h	Sun Mar 03 09:09:34 2013 +0000
@@ -1,8 +1,8 @@
 #ifndef __fast_math_h
 #define __fast_math_h
 
-#define PI 3.14159265358979 // def. of PI
-#define DEG60   512     // 60deg = 512
+#define PI 3.14159265358979 // π: def. of PI
+#define DEG60   512         // 60degを512に定義
 
 extern unsigned short  sin60[]; // sin table from 0 to 60 deg. (max precision error is 0.003%)
 // sin(th) = (float)(_sin(th/(PI/3.)*(float)DEG60+0.5))/65535.;