Mercurial > public > hwos_code
comparison src/ostc3.inc @ 37:0e1723f2761e
use four additional data points for the battery monitor
author | mh@mh-THINK.fritz.box |
---|---|
date | Thu, 15 Aug 2013 12:39:05 +0200 |
parents | eca4a201d8cf |
children | e4e91fe8b09d |
comparison
equal
deleted
inserted
replaced
36:527c35f17a66 | 37:0e1723f2761e |
---|---|
140 | 140 |
141 ; Velocity threshold | 141 ; Velocity threshold |
142 #DEFINE velocity_warning_level_1 .7 ; [m/min] | 142 #DEFINE velocity_warning_level_1 .7 ; [m/min] |
143 | 143 |
144 ; Battery thresholds | 144 ; Battery thresholds |
145 #DEFINE lithium_36v_empty .2800 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display | 145 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display |
146 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!) | 146 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!) |
147 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA | 147 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA |
148 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 | 148 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 |
149 #DEFINE color_code_battery_low .15 ; [%] | 149 #DEFINE color_code_battery_low .15 ; [%] |
150 #DEFINE battery_show_level .30 ; [%] | 150 #DEFINE battery_show_level .30 ; [%] |
151 | |
152 ; 3,6V battery sensing data points at 55mA load | |
153 #DEFINE lithium_36v_75 .3200 ; [mV] | |
154 #DEFINE lithium_36v_50 .3100 ; [mV] | |
155 #DEFINE lithium_36v_25 .2900 ; [mV] | |
156 #DEFINE lithium_36v_10 .2600 ; [mV] | |
151 | 157 |
152 #DEFINE current_sleepmode .62 | 158 #DEFINE current_sleepmode .62 |
153 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset | 159 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset |
154 #DEFINE current_backlight_offset .216 | 160 #DEFINE current_backlight_offset .216 |
155 #DEFINE current_speed_eco .1914 | 161 #DEFINE current_speed_eco .1914 |