Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
Diff: task.h
- Revision:
- 16:33c17c62840e
- Parent:
- 15:20f7f737c256
- Child:
- 17:0b241aa1f5b6
--- a/task.h Mon Jun 25 17:43:40 2018 +0000 +++ b/task.h Sat Jun 30 12:28:18 2018 +0000 @@ -18,6 +18,7 @@ #define CHR_AUD_FREQ 'f' #define CHR_RESP_DUR 'y' #define CHR_POST_DUR 'n' +#define CHR_REWARD_ONSET 'u' #define CHR_REWARD_DUR 'r' #define CHR_PRE_MIN 'o' #define CHR_VIS_MIN 'j' @@ -28,7 +29,8 @@ Pair, Report, Associate, - Motion + Motion, + MotionAlt }; struct ModeSelection: public config::CommandResponder @@ -38,6 +40,7 @@ static const char CMD_MODE_REPORT; static const char CMD_MODE_ASSOCIATE; static const char CMD_MODE_MOTION; + static const char CMD_MODE_MOTION_ALT; ModeSelection(); // not allowed @@ -73,7 +76,9 @@ Property<uint16_t> post_dur_ms; // the post-reward recording duration. - Property<uint16_t> reward_ms; // the duration of reward. + 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.