Submitted by robotter on Fri, 05/04/2018 - 20:01
I realise that calling the MotorsOff function actually puts the motor on hard stop, is there any way to allow the motor to coast to a stop instead of hard stopping? I suppose this will be less harmful to the motors and less likely to tip over when carrying load.
piborg
Fri, 05/04/2018 - 22:16
Permalink
Gentle stop
Unfortunately the ThunderBorg does not have the capability to allow the motors to coast.
What you can do instead is create a function which will gradually reduce the motor power to nothing. This is gentler on the motors than a hard stop and should cause your MonsterBorg to slow down in a much more controlled fashion.
Here is an example of how this can be done:
The function takes the current motor powers and reduces them at a fixed rate until both motors are off. You can change the rate of the slowdown by adjusting the
stepSize
anddelay
values.robotter
Sat, 05/05/2018 - 06:26
Permalink
Thanks for the quick reply
Thanks for the quick reply and sample code workaround.
Is there any plans to implement coasting in the future?
piborg
Sat, 05/05/2018 - 12:46
Permalink
Coasting support
Unfortunately this is a limitation of the drive chips used on ThunderBorg, they will only go into coasting mode when a fault has been detected with the motors or power supply.
Our more powerful controllers (such as Diablo) have this functionality, so it is possible we will have smaller boards which support this in the future. At the moment we do not have any planned with the feature.