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
motor_controller.h
- Committer:
- sandwich
- Date:
- 2014-07-11
- Revision:
- 25:4f2f441eceec
- Parent:
- 12:7eeb29892625
File content as of revision 25:4f2f441eceec:
#pragma once #include "mbed.h" #define FREQ_MIN 0.5 //Hz #define FREQ_MAX 3 //Hz float sigm(float input); class PololuMController { private: PwmOut pwm; DigitalOut outA; DigitalOut outB; public: PololuMController(); PololuMController(PinName pwmport, PinName A, PinName B); void setpolarspeed(float speed); //-1 to 1 };