fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
9:e136394bdb39
Parent:
8:973dcd190672
Child:
10:7c216d528c35
--- a/task.cpp	Thu May 31 15:25:37 2018 +0000
+++ b/task.cpp	Mon Jun 18 10:43:45 2018 +0000
@@ -15,6 +15,12 @@
     run         (CMD_EXECUTE,     callback(this, &Task::runTrial))
 { }
 
+const char ModeSelection::CMD_ID_MODE       = '_';
+const char ModeSelection::CMD_MODE_PAIR     = 'P';
+const char ModeSelection::CMD_MODE_WITHCUE  = 'W';
+const char ModeSelection::CMD_MODE_REPORT   = 'R';
+const char ModeSelection::CMD_MODE_APPEAR   = 'A';
+
 ModeSelection::ModeSelection(const Mode& defaultValue):
     value(defaultValue) {
     config::addCommand(CMD_ID_MODE, this);
@@ -27,6 +33,7 @@
 bool ModeSelection::parse(const char& c) {
     switch(c) {
     case CMD_MODE_PAIR:     value = Pair;      return true;
+    case CMD_MODE_WITHCUE:  value = WithCue;   return true;
     case CMD_MODE_REPORT:   value = Report;    return true;
     case CMD_MODE_APPEAR:   value = Appear;    return true;
     default: