Motor Brake not Holding when using okapilib motor device?

Basically, when I try and set the motor brake type to hold it is acting as if the motor is on coast and not hold and is allowing my catapult to slowly un-prime itself, anyone have any idea why it’s doing this?

This is my code

void load()
{
    cataMotor.setBrakeMode(AbstractMotor::brakeMode::hold);
    while(limitSwitch.get_value() == false)
    {
        piston.set_value(0);
        cataMotor.moveVoltage(-12000);
    }
    cataMotor.moveVoltage(0);
}
1 Like

4 Likes

lol I’m just blind got it, scrolled past that at least 20 times

1 Like