Closed jmdelahanty closed 2 years ago
For now it should be just a static value I'd imagine, at least Austin will probably want to keep it that way. So having it in the Arduino's metadata is probably better.
This is currently how it is done until Deryn's Arduino script has the additional LED timing variables in place... come to think of it, since the LED onsets are always a static value this too should probably just be a metadata field/hardcoded value in the script if we go the way the headfix boxes run things... making another issue now.
This US Delay is calculated from the END of the tone because of how things are written in the script. Since adopting Deryn's code is the way forward, doing this band-aid works in a pinch.
The configuration file and associated metadata array/Arduino file needs to be updated so the US delay parameter is given. The training boxes/new behaviors will have stimuli delivered in the middle of tones. A delay of 0 indicates that the sucrose will be delivered at the same moment as the tone begins, 100 will mean 100ms after, etc. Previously the US was delivered as the tone ended.
Something that has to be confirmed: