Natalie C. Landon-Brace added LED On.tex  about 10 years ago

Commit id: bca039cdedc025cfff4272deeca9f2352c7b001d

deletions | additions      

         

\subsubsection{Determining if the LED is On}  Determining if the light is on required effectively the same method as determining whether is was present, with a few exceptions. Firstly, all variables involved in light testing were initialized to 0 at the beginning of the LED testing sequence. Secondly, a light was not checked if it had been previously determined to be missing. Finally, 254 data points were taken for the voltage of the light once the switches had been activated to see how many times the voltage measured over the threshold. If the threshold was exceeded at least 10 times, the light was determined to be on and was tested for flikcering. If not, the light was recorded as an LED fail, and the next light was selected. Code for the LED\_TEST subroutine is shown in Figure \ref{fig:LED_TEST1} and Figure \ref{fig:LED_TEST2}.