Librairie pour contrôler un moteur connecté à un contrôleur SDC21XX
Dependencies: CANopen_Node Roboteq_SDC_serie
Dependents: TCP_Server_Example
Fork of SDC21XX_Motor by
Diff: SDC21XX_Motor.h
- Revision:
- 2:30acd3c5d5da
- Parent:
- 1:a677037eca0a
- Child:
- 4:7aaa045734b7
diff -r a677037eca0a -r 30acd3c5d5da SDC21XX_Motor.h --- a/SDC21XX_Motor.h Mon Jul 11 11:02:54 2016 +0000 +++ b/SDC21XX_Motor.h Mon Jul 11 13:51:15 2016 +0000 @@ -10,6 +10,7 @@ 1 constructor, using a pointer to a Roboteq object instead of node identifier and CAN pointer Getters and setters for every variable Go- and GetAngle, to move the selected axis, using reductor and encoder resolution + SetVelocity, SetAcceleration, SetDeceleration, SetParameters, servant à régler la vitesse de rotation, l'accéleration et la déceleration */ /**************************************************/ @@ -68,6 +69,10 @@ uint8_t GetNodeID(void); void SetCan(CAN * _can); CAN* GetCan(void); + void SetVelocity(uint16_t _vel); + void SetAcceleration(long _accel); + void SetDeceleration(long _decel); + void Setparameters(uint16_t _vel, long _accel, long _decel); private :