From 495ef3b4fe00e33a653ba3787b2b22bade61cc58 Mon Sep 17 00:00:00 2001 From: Khaled Alomari <kha.alomari@gmail.com> Date: Wed, 10 Mar 2021 12:21:20 +0100 Subject: [PATCH] update robofish.h (numbering) --- firmware/robofish.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/robofish.h b/firmware/robofish.h index 55a3a54..09cd555 100644 --- a/firmware/robofish.h +++ b/firmware/robofish.h @@ -1,7 +1,7 @@ /***** ROBOT IDENTIFICATION *****/ /* change this before uploading */ -#define ROBOT_ID 113 +#define ROBOT_ID 120 // Assuming 8V == 100% and 6V == 0% // Calculate upper PWM according to Voltage Divider formula: @@ -27,7 +27,11 @@ #define BATT_VAL_6V 545 #define BATT_VAL_9V 727 #define MOTOR_VOLT 5.00 -#elif ROBOT_ID >= 110 // NodeMCU + PCB +#elif ROBOT_ID >= 110 && ROBOT_ID<=119 // NodeMCU + PCB +#define BATT_VAL_6V 545 +#define BATT_VAL_9V 727 +#define MOTOR_VOLT 5.00 +#elif ROBOT_ID >= 120 // NodeMCU + PCB V2.1 #define BATT_VAL_6V 545 #define BATT_VAL_9V 727 #define MOTOR_VOLT 5.00 -- GitLab