From f826d28c96938a2c57849f7268240b0e9f70a538 Mon Sep 17 00:00:00 2001 From: Singular Devices Date: Sat, 10 Jul 2021 19:25:14 +0000 Subject: [PATCH] Update olr-lib.h --- open-led-race/olr-lib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/open-led-race/olr-lib.h b/open-led-race/olr-lib.h index 81f84e8..306372e 100644 --- a/open-led-race/olr-lib.h +++ b/open-led-race/olr-lib.h @@ -14,6 +14,8 @@ extern "C"{ #include "olr-param.h" #define SPD_MIN_TRACK_AUX 0.8 +#define BATTERY_DELTA 0.03 +#define BATTERY_MIN 0.5 enum stcoin{ COIN_RESET = -2, @@ -51,6 +53,7 @@ typedef struct{ int trackID; enum status st; bool leaving; + float battery; }car_t;