add another combo of args to allow kd to be configured in the CONTROL_MODE_VELOCITY case

This commit is contained in:
Mat Kelcey 2016-07-26 11:36:34 -07:00
parent b221d2ad18
commit 4b75c5d9d0

View File

@ -335,6 +335,15 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args)
}
valid = 1;
}
if (size==6)
{
if (!PyArg_ParseTuple(args, "iiiddd", &bodyIndex, &jointIndex, &controlMode, &targetValue, &maxForce, &kd))
{
PyErr_SetString(SpamError, "Error parsing arguments");
return NULL;
}
valid = 1;
}
if (size==8)
{
// only applicable for CONTROL_MODE_POSITION_VELOCITY_PD.