Open Loop drive forward
Dependencies: mbed Tach ContinuousServo
Revision 3:af4ffcb8459d, committed 2019-04-26
- Comitter:
- m211482
- Date:
- Fri Apr 26 20:14:34 2019 +0000
- Parent:
- 2:f1ccaf498a0c
- Commit message:
- Doesn't really work but oh well
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 17 14:43:47 2019 +0000 +++ b/main.cpp Fri Apr 26 20:14:34 2019 +0000 @@ -14,11 +14,11 @@ float wR; float ref=1.45; float err, errl; -float lspeed=0.49; -float rspeed=-0.49; +float lspeed=0.3; +float rspeed=-0.3; float newspeedl,newspeedr; -float Kpl=0.1; -float Kpr=-0.07; +float Kpl=0.028; +float Kpr=-0.09; int main() { while(1) {