Romain Ame
/
Stressed
coucou
Fork of Robot2016_2-0 by
ControlleurPince/ControlleurPince.h
- Committer:
- Jagang
- Date:
- 2016-05-04
- Revision:
- 58:02dc8328975a
- Child:
- 71:5590dbe8393a
File content as of revision 58:02dc8328975a:
#ifndef CONTROLLEUR_PINCE_H #define CONTROLLEUR_PINCE_H #include "Stepper.h" #include "mbed.h" class ControlleurPince { public: ControlleurPince(Stepper &p_RMot, Stepper &p_ZMot, Stepper &p_LMot, DigitalIn &p_EnR, DigitalIn &p_EnZ, DigitalIn &p_EnL); void home(bool r=true, bool z=true, bool l=true); void setPos(float z, float delta, float center); private: Stepper &RMot, &ZMot, &LMot; DigitalIn &EnR, &EnZ, &EnL; float pos_r,pos_z,pos_l; }; #endif