Gong Chen / MX64

Dependents:   2014-Mx64 2014-mx64-test

Fork of AX12 by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
ppr2013G2
Date:
Fri Jun 20 06:25:54 2014 +0000
Parent:
7:69c59554290b
Commit message:
fix

Changed in this revision

MX64.cpp Show annotated file Show diff for this revision Revisions of this file
MX64.h Show annotated file Show diff for this revision Revisions of this file
diff -r 69c59554290b -r bf333220b2f1 MX64.cpp
--- a/MX64.cpp	Tue May 27 13:58:34 2014 +0000
+++ b/MX64.cpp	Fri Jun 20 06:25:54 2014 +0000
@@ -96,7 +96,7 @@
     }
 
     // 1023 / 300 * degrees
-    short goal = (1023 * degrees) / 300;
+    short goal = (1023 * degrees) / 360;
     short sp = (1023 * speed) / 100;
     
 #ifdef AX12_DEBUG
diff -r 69c59554290b -r bf333220b2f1 MX64.h
--- a/MX64.h	Tue May 27 13:58:34 2014 +0000
+++ b/MX64.h	Fri Jun 20 06:25:54 2014 +0000
@@ -137,13 +137,13 @@
 
     /** Set the clockwise limit of the servo
      *
-     * @param degrees, 0-300
+     * @param degrees, 0-360
      */
     int SetCWLimit(int degrees);
     
     /** Set the counter-clockwise limit of the servo
      *
-     * @param degrees, 0-300
+     * @param degrees, 0-360
      */
     int SetCCWLimit(int degrees);