fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
30:5f975f572ffb
Parent:
29:1fb060aab1f8
Child:
32:1416e015016c
--- a/trial.h	Mon Oct 01 14:54:37 2018 +0000
+++ b/trial.h	Mon Oct 01 15:16:04 2018 +0000
@@ -20,6 +20,12 @@
 };
 
 struct Trial {
+    
+    /**
+    *   the trial count used during the Condition/Report/Associate modes
+    */
+    uint8_t      index;
+    
     /**
     * whether the animal whisked during the cue.
     * + whether the animal waited for the cue.
@@ -48,6 +54,8 @@
     // (passive) visual cue-related param in the Associate mode.
     uint64_t      vis_onset_us;
     
+    Trial(): index(1) { }
+    
     /**
     *   initialize the trial parameters according to the given Task parameter set.
     *   typically called from one of the automaton states.