fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
20:4c06d3041337
Parent:
18:66246d6c5476
Child:
22:41163fb3fdc6
--- a/task.h	Mon Jul 02 08:26:44 2018 +0000
+++ b/task.h	Mon Jul 02 09:04:45 2018 +0000
@@ -18,11 +18,11 @@
 #define CFG_AUD_FREQ        'f', (4)
 #define CFG_RESP_DUR        'y', (2000)
 #define CFG_POST_DUR        'n', (4000)
-#define CFG_REWARD_ONSET    'u', (500)
 #define CFG_REWARD_DUR      'r', (40)
 #define CFG_PRE_MIN         'o', (1000)
 #define CFG_VIS_MIN         'j', (1)
 #define CFG_VIS_AVG         'v', (50)
+#define CFG_VIS_FREQ        'b', (4)
 #define CFG_VIS_FAIL        'q', (30)
 
 enum Mode {
@@ -76,8 +76,6 @@
     
     Property<uint16_t>  post_dur_ms;    // the post-reward recording duration.
     
-    Property<uint16_t>  reward_on_ms;   // the onset of reward relative to visual cue during Pair.
-    
     Property<uint16_t>  reward_dur_ms;  // the duration of reward.
     
     Property<uint16_t>  pre_min_ms;     // the minimum onset for the (passive) visual cue.
@@ -86,6 +84,8 @@
     
     Property<uint16_t>  vis_avg_ms;     // the average duration for the (passive) visual cue.
     
+    Property<uint16_t>  vis_blink_hz;   // the blinking frequency (any positive number), or disabled (0)
+    
     Property<uint16_t>  vis_fail_perc;     // the 'failure rate' of the (passive) visual cue.
     
     Action              test_reward;