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: MainController.h
- Revision:
- 13:5ed8fd870723
- Parent:
- 12:7eeb29892625
- Child:
- 15:dc5753a5b83e
--- a/MainController.h Sat Feb 01 00:03:40 2014 +0000 +++ b/MainController.h Mon Feb 03 21:04:35 2014 +0000 @@ -46,6 +46,7 @@ float calculateFrequency(); float calculateVolume(); float calculateRudder(); + float signum(float input); private: PwmIn ch3; @@ -65,7 +66,8 @@ float frqMax; float amplitude; float rud; - float frqmxsqrt; + float goofftime; + bool switched; }; #endif