Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope MODSERIAL QEI TextLCD mbed
Fork of TotalControlEmg2 by
Diff: main.cpp
- Revision:
- 53:4a0857fbbb34
- Parent:
- 52:85ddaee35185
- Child:
- 54:062b9f36edf2
--- a/main.cpp Wed Oct 28 12:58:30 2015 +0000 +++ b/main.cpp Wed Oct 28 13:10:26 2015 +0000 @@ -104,7 +104,7 @@ int PotReader(AnalogIn& pot){ // read potentialmeter and determine its mode (1 = default, 2, 3) double volt = pot.read(); int mode = 1; - if(volt > 0.95){ + if(volt > 0.8){ mode = 3; } else if(volt>0.35 && volt<0.65){ @@ -144,7 +144,7 @@ } void checkSide(AnalogIn& ks, int dir){ if((dirM2.read() == dir) && (pwmM2.read()>0)){ // direction motor clashes with killswitch and motor is on - if(ks.read()>0.8){ + if(ks.read()>0.95){ pwmM2.write(0); // Aim motor freeze pc.printf("BOEM! CRASH! KASTUK!\r\n"); // Terminal PRINT("BOEM! CRASH!"); // LCD