Pololu dual tb9051ftg braking function

I am using the pololu dual tb9051ftg motor shield on Arduino UNO. I am also using the shield library. The library has the setspeed function where I think if I set speed at 0, it is doing coasting. Does it have capability to do braking (like the setBrakes function in dualvnh5019)? if yes, how do change the library code to make it work?

thanks.

Hello.

The setSpeeds method from our Arduino library for the Pololu Dual TB9051FTG Motor Driver Shield only changes the duty cycle delivered to the drivers’ PWM pins. It does not directly affect the drive/coast behavior. If the driver is enabled and you set the speed to zero, it will brake. If you disable the drivers, it will coast. To disable the drivers (using the EN and ENB pins) you can use the disableDrivers method.

- Patrick

Thank you very much for your reply. This is clear now.