Fish Feeder

Fork of AX12 by Chris Styles

Revision:
4:0cb4b015fe23
Parent:
3:ced71d1b2558
--- a/AX12.cpp	Sun Apr 10 21:20:44 2011 +0000
+++ b/AX12.cpp	Tue Jun 30 03:24:38 2015 +0000
@@ -64,7 +64,7 @@
     }
 
     // 1023 / 300 * degrees
-    short goal = (1023 * degrees) / 300;
+    short goal = degrees;
 #ifdef AX12_DEBUG
     printf("SetGoal to 0x%x\n",goal);
 #endif
@@ -112,7 +112,7 @@
     char data[2];
 
     // 1023 / 300 * degrees
-    short limit = (1023 * degrees) / 300;
+    short limit = (1023 * degrees) / 1023;
 
 #ifdef AX12_DEBUG
     printf("SetCWLimit to 0x%x\n",limit);