]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pattern+current adjustments
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 10 Apr 2013 21:48:27 +0000 (23:48 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 10 Apr 2013 21:48:27 +0000 (23:48 +0200)
firmware/control.c
firmware/pwmled.c

index 4de03ab4a0a7751e9ba5922a96989507043fc7c7..da59972b135c59c2cb2b5678aa4bb578724a327c 100644 (file)
@@ -158,8 +158,8 @@ pattern_t *pwmled0_pattern_select()
 
        switch (ambient_zone) {
        case 0: return dim_mode ? NULL : number_pattern(2, 1);
-       case 1: return dim_mode ? NULL : normal3_pattern;
-       case 2: return dim_mode ? slow3_pattern : normal3_pattern;
+       case 1: return dim_mode ? slow1_pattern : normal2_pattern;
+       case 2: return dim_mode ? slow2_pattern : normal3_pattern;
        case 3:
        default: return dim_mode ? slow3_pattern : normal4_pattern;
        }
index 8e86b4fa1158f496dfb05caf2af859b2833a8382..9aa6d8074689dd9b5e08de41e2d0a23e805e4a60 100644 (file)
@@ -48,7 +48,7 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = {
        MA_GAIN_TO_ADC(  50, 20),
        MA_GAIN_TO_ADC( 100, 20),
        MA_GAIN_TO_ADC( 200, 20),
-       MA_GAIN_TO_ADC( 300, 20),
+       MA_GAIN_TO_ADC( 350, 20),
        /* pwmled1 */
        MA_GAIN_TO_ADC(   5, 20),
        MA_GAIN_TO_ADC(  10, 20),
@@ -61,8 +61,8 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = {
        MA_GAIN_TO_ADC( 200,  1)
 #else
        /* pwmled0 */
+       MA_GAIN_TO_ADC(  50, 20),
        MA_GAIN_TO_ADC( 100, 20),
-       MA_GAIN_TO_ADC( 150, 20),
        MA_GAIN_TO_ADC( 200, 20),
        MA_GAIN_TO_ADC( 350, 20),
        /* pwmled1 */
@@ -71,8 +71,8 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = {
        MA_GAIN_TO_ADC(  18, 20),
        MA_GAIN_TO_ADC(  23, 20),
        /* pwmled2 */
-       MA_GAIN_TO_ADC( 200,  1),
-       MA_GAIN_TO_ADC( 400,  1),
+       MA_GAIN_TO_ADC( 150,  1),
+       MA_GAIN_TO_ADC( 300,  1),
        MA_GAIN_TO_ADC( 800,  1),
        MA_GAIN_TO_ADC(1500,  1)
 #endif