changes to motor library
Fork of motor by
Diff: motor.cpp
- Branch:
- motorupdate
- Revision:
- 39:772ff68123cc
- Parent:
- 38:4bb39bb1e685
- Child:
- 40:29373275b6cb
--- a/motor.cpp Sat Jan 28 15:50:41 2017 +0000 +++ b/motor.cpp Sun Jan 29 13:15:40 2017 +0000 @@ -189,6 +189,8 @@ float vin = speed*(1 - 0.1/tan((theta/0.022222)*(3.14f / 180.0f))); //speed of outer wheel. float vout = speed*(1 + 0.1/tan((theta/0.022222)*(3.14f / 180.0f))); + + // this sets the speeds of the inner and outer wheels if(leftOrRight){ w1=vout;