Mercurial > public > hwos_code
comparison src/ostc3.inc @ 2:ab8a7c3f1db0
battery warning levels, max. brightnes setting
author | heinrichsweikamp |
---|---|
date | Sun, 05 May 2013 15:37:24 +0200 |
parents | 11d4fc797f74 |
children | ed1dec74d5fd |
comparison
equal
deleted
inserted
replaced
1:e4e662746c02 | 2:ab8a7c3f1db0 |
---|---|
17 | 17 |
18 #include <p18f87k22.inc> | 18 #include <p18f87k22.inc> |
19 #include <ports.inc> ; Portmap | 19 #include <ports.inc> ; Portmap |
20 | 20 |
21 #DEFINE softwareversion_x d'0' ; Software version XX.YY | 21 #DEFINE softwareversion_x d'0' ; Software version XX.YY |
22 #DEFINE softwareversion_y d'90' ; Software version XX.YY | 22 #DEFINE softwareversion_y d'91' ; Software version XX.YY |
23 #DEFINE softwareversion_beta 0 ; (and 0 for release) | 23 #DEFINE softwareversion_beta 0 ; (and 0 for release) |
24 | 24 |
25 #DEFINE comm_service_key 0xABCDEF | 25 #DEFINE comm_service_key 0xABCDEF |
26 | 26 |
27 ;----------------------------------------------------------------------------- | 27 ;----------------------------------------------------------------------------- |
139 | 139 |
140 ; Velocity threshold | 140 ; Velocity threshold |
141 #DEFINE velocity_warning_level_1 .7 ; [m/min] | 141 #DEFINE velocity_warning_level_1 .7 ; [m/min] |
142 | 142 |
143 ; Battery thresholds | 143 ; Battery thresholds |
144 #DEFINE lithium_36v_empty .3050 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display | 144 #DEFINE lithium_36v_empty .2800 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display |
145 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!) | 145 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!) |
146 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA | 146 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA |
147 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 | 147 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 |
148 #DEFINE color_code_battery_low .15 ; [%] | 148 #DEFINE color_code_battery_low .15 ; [%] |
149 #DEFINE battery_show_level .30 ; [%] | 149 #DEFINE battery_show_level .30 ; [%] |
156 #DEFINE current_speed_fastest .5050 | 156 #DEFINE current_speed_fastest .5050 |
157 #DEFINE current_ir_reciever .139 | 157 #DEFINE current_ir_reciever .139 |
158 #DEFINE current_compass .28 | 158 #DEFINE current_compass .28 |
159 | 159 |
160 ; Brightness thresholds (between zero (off) and 255 (max. power)) | 160 ; Brightness thresholds (between zero (off) and 255 (max. power)) |
161 #DEFINE ambient_light_max_high_36V .220 ; When used with a 3,6V battery | 161 #DEFINE ambient_light_max_high_36V .175 ; When used with a 3,6V battery |
162 #DEFINE ambient_light_max_high .170 | 162 #DEFINE ambient_light_max_high .150 |
163 #DEFINE ambient_light_min_high .40 | 163 #DEFINE ambient_light_min_high .40 |
164 #DEFINE ambient_light_max_medium .155 | 164 #DEFINE ambient_light_max_medium .135 |
165 #DEFINE ambient_light_min_medium .30 | 165 #DEFINE ambient_light_min_medium .30 |
166 #DEFINE ambient_light_max_eco .120 | 166 #DEFINE ambient_light_max_eco .110 |
167 #DEFINE ambient_light_min_eco .20 | 167 #DEFINE ambient_light_min_eco .20 |
168 | 168 |
169 ; IR Link timeout | 169 ; IR Link timeout |
170 #DEFINE ir_timeout_value .48 ; multiples of 62,5ms | 170 #DEFINE ir_timeout_value .48 ; multiples of 62,5ms |
171 | 171 |