Guest User

driver.h

a guest
Jul 17th, 2012
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2.  
  3. class Driver{
  4. public:
  5. Driver(byte addr, byte out);
  6. int setParameter();
  7. void enable(byte mode);
  8. void loadTraj(byte mode, long pos, byte speed, byte acc, unsigned short int steptime);
  9. void setGroup(bool isLeader);
  10. void stopMotor(byte mode);
  11. private:
  12. byte PicoAddr, OutVal, GroupAddr;
  13. byte Mode, MinSpeed, RunCurrent, HldCurrent, ADLimit, EmAcc, Speed, Acc;
  14. long Pos;
  15. unsigned short int StepTime;
  16. };
RAW Paste Data