Telliskivi 2 2014
Dependencies: DoubleCoilGun 4DGL-uLCD-SE ExternalIn HumanInterfaceT14 LedOut MCP3021 MODSERIAL Motor1Pwm1Dir PCA9555 PinDetect QED RgbLedPCA9555 WDT_K64F mbed-src
Fork of Telliskivi2plus by
Diff: main.cpp
- Revision:
- 4:c5cf0676baca
- Parent:
- 3:4ec313b1b314
- Child:
- 5:b30229c6f32b
--- a/main.cpp Sun Sep 22 07:27:21 2013 +0000 +++ b/main.cpp Mon Sep 23 14:05:38 2013 +0000 @@ -442,6 +442,14 @@ } else if (strncmp(cmd, "d", 1) == 0) { pc.printf("discharge\n"); coilgun.discharge(); + } else if (strncmp(cmd, "reset", 5) == 0) { + motor1.setSpeed(0); + motor2.setSpeed(0); + motor3.setSpeed(0); + motor4.setSpeed(0); + motor5.setSpeed(0); + humanInterface.setGoal(HumanInterface::UNSET); + humanInterface.setError(false); } else if (strncmp(cmd, "fs", 2) == 0) { failSafeEnabled = (bool)atoi(strtok(NULL, ":")); } else if (strncmp(cmd, "target", 6) == 0) {