diff --git a/firmware/robofish.h b/firmware/robofish.h index 55a3a54b811790c25d09f38342e4ee50af9043c6..09cd555884c91af1d7145bcfa568228c9d4eae07 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