]> www.fi.muni.cz Git - bike-lights.git/commit
ambient.c: "entering shadow" detection
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 19 Jul 2013 19:45:27 +0000 (21:45 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 19 Jul 2013 19:45:27 +0000 (21:45 +0200)
commit60f1349e85769a3fe43843b46b4232168c08ca98
treed0e3e5c49f7e00c2534c7a42339073c65ce81cfb
parentb2a7818a12aab1915c19ae65af12b2f16c2f4da6
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.
firmware/ambient.c
firmware/control.c
firmware/lights.h