Skip to content

Missing implementation of ControlBoardDriver::SetRefCurrent #266

Description

@LoreMoretti

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions