Mateusz Grzywacz / Yellow2WheeledRobot_motor_shield

YellowMotors.h

Committer:
amateusz
Date:
2016-02-03
Revision:
1:85961b2af06e
Parent:
0:85e85976c650
Child:
2:6f6e591f1838

File content as of revision 1:85961b2af06e:


// this is rather strange case, because my motors aren't performing both well. Left one has far weaker, causing delayed start-up and lower RPM. Thus my functions differ. I have a whole bigass spreadsheet of graphs and calculations by the way.
float motorLinearizationL(float desired);  // left motor is worse. at max desired speed it'll run at full 100% speed. this is thus weaker compensation.
float motorLinearizationR(float desired);  //  this is stronger compensation for more powerful motor. it runs it at < 100% speed