Giancarlo R.
/
RoboArm
Robo class for controlling Lynxmotion AL5A Arm
Embed:
(wiki syntax)
Show/hide line numbers
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 };
Generated on Sun Jul 24 2022 21:07:02 by 1.7.2