Psi Swarm robot library version 0.9

Dependents:   PsiSwarm_V9_Blank

Fork of PsiSwarmV9 by James Hilder

Revision:
20:2b6ebe60929d
Parent:
19:3e3b03d80ea3
--- a/animations.cpp	Mon Jun 05 22:47:14 2017 +0000
+++ b/animations.cpp	Mon Jul 08 10:50:40 2019 +0000
@@ -74,7 +74,7 @@
     led.set_leds(green_state,red_state);
     animation_counter++;
     if(animation_counter < 21) {
-        animation_timeout.attach(this, &Animations::IF_led_run1, 0.05f);
+        animation_timeout.attach(callback(this, &Animations::IF_led_run1), 0.05f);
     } else {
         animation_counter = 0;
         led.restore_led_states();
@@ -110,7 +110,7 @@
         float wiggle_timeout_period = 0.06;
         //Move less on first 'wiggle' so that we stay in roughly the same place!
         if(animation_counter == 0) wiggle_timeout_period = 0.03;
-        animation_timeout.attach(this, &Animations::IF_vibrate, wiggle_timeout_period);
+        animation_timeout.attach(callback(this, &Animations::IF_vibrate), wiggle_timeout_period);
     } else {
         animation_counter = 0;
         motors.brake();