![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Turn Code
Dependencies: ContinuousServo Tach mbed
Diff: main.cpp
- Revision:
- 1:b19f21fdf69f
- Parent:
- 0:f9723e66263e
--- a/main.cpp Wed Apr 25 03:08:02 2018 +0000 +++ b/main.cpp Wed Apr 25 03:09:37 2018 +0000 @@ -13,6 +13,7 @@ float r = 1.3125; //radius of wheels float l = 4.0625; //width of wheel base +//For these robots, a positive omega is a right turn and a negative is left float omega = 0.2; //angular velocity of wheels float v = 0.0; //translational velocity of wheels float kp = 1.0; //Proportional control gain