
Time is good
Fork of Robot2016_2-0 by
ControlleurPince/ControlleurPince.h
- Committer:
- IceTeam
- Date:
- 2016-05-06
- Revision:
- 93:c0b040954eac
- Parent:
- 92:f09f55aa992b
- Child:
- 97:42167cfeb8d7
File content as of revision 93:c0b040954eac:
#ifndef CONTROLLEUR_PINCE_H #define CONTROLLEUR_PINCE_H //#include "defines.h" #include "Stepper.h" #include "../AX12/AX12.h" #include "mbed.h" #include "defines_Pince.h" class ControlleurPince { public: ControlleurPince(Stepper &p_RMot, Stepper &p_ZMot, Stepper &p_LMot, DigitalIn &p_EnR, DigitalIn &p_EnZ, DigitalIn &p_EnL, AX12 &_Lax12, AX12 &_Rax12); void init(); void home(bool r=true, bool z=true, bool l=true); void setPos(float z, float delta, float center = -600); void close(); void open(); private: Stepper &RMot, &ZMot, &LMot; DigitalIn &EnR, &EnZ, &EnL; AX12 &Lax12, &Rax12; float pos_r,pos_z,pos_l; }; #endif