Basic tank-style drive robot control firmware for Freescale FRDM-K64F. Controls motors on a Dual-Full-H-Bridge with EN, like DBH-1x series, from Bluetooth serial commands
Diff: Command.h
- Revision:
- 1:23d0a615756a
- Parent:
- 0:41ca27337c2b
- Child:
- 2:54d27fdcbe5c
--- a/Command.h Tue Jul 28 14:59:19 2015 +0000 +++ b/Command.h Fri Jul 31 17:37:52 2015 +0000 @@ -59,10 +59,10 @@ return(0); // commands without values case '!': - case '^': + // case '^': case '?': - case 'a': // command to set Autonomous in manual mode - case 'A': + // case 'a': // command to set Autonomous in manual mode + // case 'A': cmdCode = c; // return prev command code (if any) cmdVal = 0; return(1); @@ -70,17 +70,6 @@ // codes with values follow : case 'L': case 'R': - case 'p': - case 't': - case 'm': - case 'C': - case 'c': - case 'S': - case 'T': - case 'G': - case 'g': - case 'r': - case 'd': begin(); // clear old command, if any code = c; // remember command for wich the following value applies return(0); // wait for value