Quote:
Originally Posted by tomy
So we would have to do a type of if statement that looks at the battery voltage and if the level drops to a certain range change the speed to compensate?
|
Multiply your motor command by 12.5/V, where V is the measured voltage. As V goes down, this compensates by increasing your motor command.
This only works, of course, if you have some headroom in your motor command, i.e. you are not already commanding 100%.