10 #ifndef PROJECT_ACTUATORMODEL_H 11 #define PROJECT_ACTUATORMODEL_H 19 T dryFriction, T tauMax)
35 T tauDesMotor = tauDes /
_gr;
36 T iDes = tauDesMotor / (
_kt * 1.5);
38 T bemf = qd *
_gr *
_kt * 2.;
39 T vDes = iDes *
_R + bemf;
42 1.5 *
_kt * (vActual - bemf) /
_R;
59 #endif // PROJECT_ACTUATORMODEL_H
T getTorque(T tauDes, T qd)
T coerce(T in, T min, T max)
ActuatorModel(T gearRatio, T motorKT, T motorR, T batteryV, T damping, T dryFriction, T tauMax)
void setFriction(bool enabled)