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: main.cpp
- Revision:
- 25:4f2f441eceec
- Parent:
- 24:9d75ed1462d6
diff -r 9d75ed1462d6 -r 4f2f441eceec main.cpp --- a/main.cpp Fri Jun 06 19:48:01 2014 +0000 +++ b/main.cpp Fri Jul 11 14:30:36 2014 +0000 @@ -20,12 +20,11 @@ printf("started\n"); while(true) { - pc.printf("control: %d, frq: %.3f, vol: %.2f, amp: %.3f, yaw: %.2f, dut: %.2f, pit: %.2f, adj: %.2f, t: %.2f\n", - mainCtrl.getOpMode(), mainCtrl.getFrequency(), mainCtrl.getVolume(), mainCtrl.getAmplitude(), mainCtrl.getYaw(), mainCtrl.getDutyCycle(), mainCtrl.getPitch(), mainCtrl.getAdj(), t.read()); + //pc.printf("control: %d, frq: %.3f, vol: %.2f, amp: %.3f, yaw: %.2f, dut: %.2f, pit: %.2f, adj: %.2f, t: %.2f\n", + // mainCtrl.getOpMode(), mainCtrl.getFrequency(), mainCtrl.getVolume(), mainCtrl.getAmplitude(), mainCtrl.getYaw(), mainCtrl.getDutyCycle(), mainCtrl.getPitch(), mainCtrl.getAdj(), t.read()); //syren.putc(int(mainCtrl.getDutyCycle())); - //Thread::wait(100); - wait_ms(100); + //wait_ms(100); } //t.stop(); //mainCtrl.stop();