My modifications/additions to the code
Dependencies: ADXL345 ADXL345_I2C IMUfilter ITG3200 Servo fishgait mbed-rtos mbed pixy_cam
Fork of robotic_fish_ver_4_8 by
Diff: guardian.cpp
- Revision:
- 7:e005cfaff8d1
- Parent:
- 5:090ef6275773
- Child:
- 12:7eeb29892625
diff -r a4d6f3e4bf28 -r e005cfaff8d1 guardian.cpp --- a/guardian.cpp Wed Jan 29 05:04:50 2014 +0000 +++ b/guardian.cpp Thu Jan 30 02:04:23 2014 +0000 @@ -44,11 +44,11 @@ void Guardian::calibrate() //must be done within 15 sec of power on { set2D(); - Thread::wait(500); + wait(500); set3D(); - Thread::wait(500); + wait(500); set2D(); - Thread::wait(2000); + wait(2000); //now look for the twitch return; }