Robo class for controlling Lynxmotion AL5A Arm

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers robo.h Source File

robo.h

00001 //Robo class header for controlling robotic arm
00002 //Created 10/12/2011 by MLD 427
00003 
00004 #include "mbed.h"
00005 class robo{
00006     private:
00007     PwmOut *spin;
00008     PwmOut *base;
00009     PwmOut *elbow;
00010     PwmOut *wrist;
00011     PwmOut *claw;
00012     public:
00013     robo(PinName s, PinName b, PinName e, PinName w, PinName c);
00014     void write(float percent, int motor);
00015     void writeSpin(float percent);
00016     void writeBase(float percent);
00017     void writeElbow(float percent);
00018     void writeWrist(float percent);
00019     void writeClaw(float percent);
00020     
00021     
00022 };