aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-29 17:50:09 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-29 17:50:09 +0200
commita93bcdf20962a9fe32c1dd19aa820551ac13212d (patch)
treed1b49fc4fdee7d75b6ed622ba2981e0c0356d393 /shared
parent516b08a12901faf65ae1af2d7bfd288f6d5d2ff5 (diff)
crosswalk working0.7.0dev
Diffstat (limited to 'shared')
-rw-r--r--shared/consts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/shared/consts.h b/shared/consts.h
index b6be4a4..a083f61 100644
--- a/shared/consts.h
+++ b/shared/consts.h
@@ -56,10 +56,14 @@
/** battery voltage measurement sample count */
#define W2_BATTERY_SAMPLES 10
/** battery full voltage (millivolts) */
-#define W2_BATTERY_FULL 4500
+#define W2_BATTERY_FULL 5000
/** battery empty voltage (millivolts) */
-#define W2_BATTERY_EMPTY 3300
+#define W2_BATTERY_EMPTY 100
/** battery measurement interval (milliseconds) */
#define W2_BATTERY_MEAS_FREQ 10e3
/** battery low level percentage (target charging station) */
#define W2_BATTERY_PERCENTAGE_LOW 30
+
+/** arbitrary grid constants */
+#define W2_GRID_CROSSWALK_DISTANCE 400
+