Class for Futaba Servo motor RS3xx series

Dependents:   Hobby_Humanoid_controlor

Revision:
1:64e11d4c49ae
Parent:
0:6b230fd13b40
Child:
2:1ab1adf0915c
--- a/RS300.cpp	Wed Sep 11 18:29:27 2013 +0000
+++ b/RS300.cpp	Thu Sep 12 17:57:41 2013 +0000
@@ -32,7 +32,7 @@
 {
     std::vector<uint8_t> dat;
     dat.push_back(0x01);
-    send_packet(0x24, dat, 1, 0xFF);//adress, on, servo amount, id(all)
+    for (uint8_t i = 0; i < 10; ++i) send_packet(0x24, dat, 1, i);//adress, on, servo amount, id(all)
 }
 
 void RS300::off_all_servo()