File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,35 +24,37 @@ Force force(ver); //start FORCE object
2424void setup () {
2525 force.begin (); // setup FORCE
2626 force.trial_available = false ;
27- force.LeftActive = true ;
28- force.RightActive = true ;
2927 Serial.begin (9600 );
3028}
3129
3230void loop () {
3331 force.run (); // call force.run() at least once per loop
3432 if (digitalRead (POKE) == LOW) {
33+ force.logdata ();
3534 force.Tone ();
3635 force.trial_available = true ;
3736 force.trial_start = millis ();
3837 force.trial_length = millis () - force.trial_start ;
3938 force.Tare ();
4039 while (force.trial_length < force.trial_window ) {
40+ force.logdata ();
4141 force.trial_length = millis () - force.trial_start ;
42- Serial.println (force.trial_length );
42+ // Serial.println(force.trial_length);
4343 force.run ();
4444 force.SenseLeft ();
4545 if (force.pressLengthLeft > force.hold_timeLeft ) {
4646 // force.Tone(2000, 200);
4747 force.DispenseLeft ();
48- force.pressesLeft = 0 ;
48+ force.pressesLeft = 0 ;
49+ force.logdata ();
4950 force.Timeout (force.timeout_length );
5051 }
5152 force.SenseRight ();
5253 if (force.pressLengthRight > force.hold_timeRight ) {
5354 // force.Tone(500, 200);
5455 force.DispenseRight ();
5556 force.pressesRight = 0 ;
57+ force.logdata ();
5658 force.Timeout (force.timeout_length );
5759 }
5860 force.trial_available = false ;
You can’t perform that action at this time.
0 commit comments