The ControlBoardDriver::SetRefCurrent is not implemented.
It would be nice to have it so that we do not have to change code (or add if statements) when controlling the robot in current.
An idea for the implementation could be the following pseudocode:
bool ControlBoardDriver::setRefCurrent(int m, double curr)
{
ktau = getKtau(m)
gearRatio = getGearRatio(m)
jointTorque = current * ktau * gearRatio
return setRefTorque(jointTorque, m)
}
The ControlBoardDriver::SetRefCurrent is not implemented.
It would be nice to have it so that we do not have to change code (or add if statements) when controlling the robot in current.
An idea for the implementation could be the following pseudocode: