catchrobo2022 / Mbed 2 deprecated CatchroboJointController

Dependencies:   mbed FastPWM3

Revision:
20:bf9ea5125d52
Parent:
19:bd10a04eedc2
Child:
21:7d1f0a206668
--- a/TorqueController/TorqueController.cpp	Tue Feb 14 03:28:16 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-
-//cogging torque and torque ripple compensation can go here later
-
-#include "CurrentRegulator.h"
-#include "TorqueController.h"
-
-TorqueController::TorqueController(float Kt, CurrentRegulator *regulator)
-    {
-    _CurrentRegulator = regulator;
-    _Kt = Kt;
-    
-    }
-
-void TorqueController::SetTorque(float torque)
-    {
-        SetCurrent(0, torque/_Kt);
-    }
-
-void TorqueController::SetCurrent(float Id, float Iq)
-    {
-        _CurrentRegulator->UpdateRef(Id, Iq);
-        _CurrentRegulator->Commutate();
-        
-    }
\ No newline at end of file