From: Jan "Yenya" Kasprzak Date: Fri, 19 Jul 2013 19:45:27 +0000 (+0200) Subject: ambient.c: "entering shadow" detection X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=60f1349e85769a3fe43843b46b4232168c08ca98;hp=60f1349e85769a3fe43843b46b4232168c08ca98;p=bike-lights.git ambient.c: "entering shadow" detection We try to detect the rapid decrease in the ambient light level, such as when entering the dark area (tunnel, deep shadow, etc.). When this happens, we keep the previous (high) ambient zone, and use the night pattern (front light continuously on) for at least 3 seconds, to give the rider's eyes the opportunity to adapt. ---