Psi Swarm robot library version 0.9

Dependents:   PsiSwarm_V9_Blank

Fork of PsiSwarmV9 by James Hilder

Revision:
8:6c92789d5f87
Parent:
6:b340a527add9
Child:
9:dde9e21030eb
--- a/dances.cpp	Sun Oct 16 11:11:21 2016 +0000
+++ b/dances.cpp	Sun Oct 16 12:54:33 2016 +0000
@@ -34,10 +34,10 @@
     if(vibrate_counter == 0)save_led_states();
     if(vibrate_counter % 2 == 0) {
         set_leds(0xC7,0x00);
-        turn(1.0);
+        motors.turn(1.0);
     } else {
         set_leds(0x00,0xC7);
-        turn(-1.0);
+        motors.turn(-1.0);
     }
     vibrate_counter++;
 
@@ -48,7 +48,7 @@
         dances_timeout.attach(vibrate, wiggle_timeout_period);
     } else {
         vibrate_counter = 0;
-        brake();
+        motors.brake();
         restore_led_states();
     }
 }
\ No newline at end of file