We are working on robotmesh desktop. The program uses a variable to store motor speed, with an initial value of 20%.
Then, after some criteria are met, the variable can increase/decrease in increments of 10%, sort of a blocky-based pid.
The ramping, in code, is working fine. Problem is… when the motor receives the new variable value, it appears to try and stop for a split second, then adjusts to the new speed.
Clearly, this is a big problem.
Seems to happen if we have the variable change quickly (like a few times/second) or slowly (like once per every 2-3 seconds).