![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Delta Robot example
Dependencies: BufferedSerial Eigen
Fork of TCPSocket_Example by
Diff: servoAxis.h
- Revision:
- 5:01e1e68309ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/servoAxis.h Mon Oct 15 18:30:20 2018 +0000 @@ -0,0 +1,28 @@ +#ifndef SERVO_AXIS_H +#define SERVO_AXIS_H + +#include "mbed.h" + + +class ServoAxis +{ +public: + + ServoAxis(PinName pin,float maxAngle_, float minAngle, float middleUs_, float usPerDeg_); + void setAngle(float angle); + +private: + PwmOut* pwm; + float middleUs; + float usPerDeg; + + float maxAngle; //roughtly + float minAngle; + +}; + + + + + +#endif // SERVO_AXIS_H \ No newline at end of file