]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pwmled.c: new current values
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 26 Jun 2013 21:53:52 +0000 (23:53 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 26 Jun 2013 21:53:52 +0000 (23:53 +0200)
firmware/pwmled.c

index c156d8175f01440eef1601e4cc2609cc06082646..82237dca936b6783c38c778b6e820277bd8742f6 100644 (file)
@@ -56,10 +56,19 @@ static uint16_t adc_targets_1[] = {
 };
 
 static uint16_t adc_targets_2[] = {
+#ifdef TESTING_FW
        MA_GAIN_TO_ADC(  50,  1),
        MA_GAIN_TO_ADC( 100,  1),
-       MA_GAIN_TO_ADC( 200,  1),
+       MA_GAIN_TO_ADC( 150,  1),
+       MA_GAIN_TO_ADC( 240,  1),
        MA_GAIN_TO_ADC( 350,  1),
+#else
+       MA_GAIN_TO_ADC( 150,  1),
+       MA_GAIN_TO_ADC( 300,  1),
+       MA_GAIN_TO_ADC( 500,  1),
+       MA_GAIN_TO_ADC( 800,  1),
+       MA_GAIN_TO_ADC(1200,  1),
+#endif
 };
 
 static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES];