Giancarlo R.
/
RoboArm
Robo class for controlling Lynxmotion AL5A Arm
Diff: robo.h
- Revision:
- 0:e9452b5dc9d2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/robo.h Thu Oct 13 21:52:16 2011 +0000 @@ -0,0 +1,22 @@ +//Robo class header for controlling robotic arm +//Created 10/12/2011 by MLD 427 + +#include "mbed.h" +class robo{ + private: + PwmOut *spin; + PwmOut *base; + PwmOut *elbow; + PwmOut *wrist; + PwmOut *claw; + public: + robo(PinName s, PinName b, PinName e, PinName w, PinName c); + void write(float percent, int motor); + void writeSpin(float percent); + void writeBase(float percent); + void writeElbow(float percent); + void writeWrist(float percent); + void writeClaw(float percent); + + +}; \ No newline at end of file