Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
Diff: task.cpp
- Revision:
- 4:fcf597f82632
- Parent:
- 1:871d3066c2ab
- Child:
- 5:849446d19406
--- a/task.cpp Thu May 17 13:37:43 2018 +0000 +++ b/task.cpp Wed May 23 15:15:03 2018 +0000 @@ -1,6 +1,7 @@ #include "task.h" #include "IO.h" #include "utils.h" +#include "automaton.h" Task::Task(const Mode& mode): mode(mode), @@ -57,12 +58,13 @@ case CMD_EXECUTE: // TRIAL_STARTING - // automaton::run(); + automaton::run(); IO::result("done"); break; case '?': writeSettingsToSerial(); break; case CMD_MODE_PAIR: mode = Pair; writeModeToSerial(); break; + case CMD_MODE_REPORT: mode = Report; writeModeToSerial(); break; case CMD_MODE_APPEAR: mode = Appear; writeModeToSerial(); break; #define PARSE(CHR, PARAM) case (CHR): PARAM = parseUnsignedFromSerial<uint16_t>(PARAM);\ IO::config("%c%u",(CHR),(PARAM)); break;