Instead of removing 600 ms from timed exposure

Simply remove the part of the exposure that happens while the shutter
is opening and closing
This commit is contained in:
Matt 2016-05-29 21:37:19 -04:00
parent 763cb659d6
commit c3f595b132
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ GND-----\ | \-----PIN
---------------------------------------------------- ----------------------------------------------------
*/ */
const int MOTOR_RPM = 120;
const int BOLEX_C = round((133 / (1.66 * 360)) * 1000); //bolex exposure constant
const int FAST_PWM = 255; const int FAST_PWM = 255;
const int SLOW_PWM = 127; const int SLOW_PWM = 127;
@ -162,7 +164,7 @@ void timedString () {
timed_str = "600"; timed_str = "600";
timed = false; timed = false;
} else { } else {
timed_delay = timed_val - 600; timed_delay = timed_val - BOLEX_C;
timed = true; timed = true;
} }
Serial.println(cmd_timed); Serial.println(cmd_timed);