Access SD21 21 channel servo controller

Files at this revision

API Documentation at this revision

Comitter:
jimherd
Date:
Thu Feb 09 23:41:43 2012 +0000
Parent:
2:292c59c8c51e
Commit message:
Minor fix. Index issue.

Changed in this revision

SD21.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 292c59c8c51e -r f8b3023564af SD21.cpp
--- a/SD21.cpp	Thu Apr 21 16:27:00 2011 +0000
+++ b/SD21.cpp	Thu Feb 09 23:41:43 2012 +0000
@@ -50,7 +50,7 @@
 //
 // log these servo values
 //    
-    servo_state[servo_num].angle = angle;
-    servo_state[servo_num].speed = speed;
+    servo_state[(servo_num - 1)].angle = angle;
+    servo_state[(servo_num - 1)].speed = speed;
 }