From a93bcdf20962a9fe32c1dd19aa820551ac13212d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 29 Jun 2022 17:50:09 +0200 Subject: crosswalk working --- shared/consts.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shared') 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 + -- cgit v1.2.3