fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
24:e236faf66935
Parent:
22:41163fb3fdc6
Child:
26:b4421d1ee57a
--- a/trial.h	Tue Jul 03 13:46:21 2018 +0000
+++ b/trial.h	Tue Jul 03 13:58:05 2018 +0000
@@ -33,15 +33,22 @@
     * the timestamp when the cue started
     */
     trialtime_t   cuestarting;
+    
     /**
     * the total waiting period for the animal during this trial before the cue.
     */
     unsigned long waiting;   // used for calculation of waiting period
+    
     /**
     * the duration of the delay period for this trial.
     */
     uint16_t      delay_dur_ms;
     
+    /**
+    *   the duration of the cued period for this trial.
+    */
+    uint64_t      cued_dur_us;
+    
     // (passive) visual cue-related params
     uint64_t      vis_onset_us;
     uint64_t      vis_dur_us;
@@ -68,7 +75,7 @@
     *   the `onset` will distribute exponentially from `0` to `auddur - respdur - mindur`.
     *   the `duration` will distribute uniformly from `mindur` to `phasedur - onset`.
     */
-    void assignRandomStim(const Task& task);
+    void assignCues(const Task& task, const bool& assignVisual=true);
     
     /**
     *   a callback mechanism for marking (timestamping) the start of the trial.