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 Pierre David

Revision:
2:30acd3c5d5da
Parent:
1:a677037eca0a
Child:
4:7aaa045734b7
diff -r a677037eca0a -r 30acd3c5d5da SDC21XX_Motor.cpp
--- a/SDC21XX_Motor.cpp	Mon Jul 11 11:02:54 2016 +0000
+++ b/SDC21XX_Motor.cpp	Mon Jul 11 13:51:15 2016 +0000
@@ -62,6 +62,24 @@
     {
         return RB.GetCan();
     }
+    
+    void SDC21XX_Motor::SetVelocity(uint16_t _vel)
+    {
+        RB.SetVelocity(_vel, channel);
+    }
+    void SDC21XX_Motor::SetAcceleration(long _accel)
+    {
+        RB.SetAcceleration(_accel, channel);
+    }
+    void SDC21XX_Motor::SetDeceleration(long _decel)
+    {
+        RB.SetDeceleration(_decel, channel);
+    }
+    void SDC21XX_Motor::Setparameters(uint16_t _vel, long _accel, long _decel)
+    {
+        RB.SetParameters(_vel, _accel, _decel, channel);
+    }
+
 
     
 }//end namespace
\ No newline at end of file