Skip to content
Snippets Groups Projects
Commit 495ef3b4 authored by Khaled Alomari's avatar Khaled Alomari
Browse files

update robofish.h (numbering)

parent 1d7176dc
No related branches found
No related tags found
No related merge requests found
/***** ROBOT IDENTIFICATION *****/ /***** ROBOT IDENTIFICATION *****/
/* change this before uploading */ /* change this before uploading */
#define ROBOT_ID 113 #define ROBOT_ID 120
// Assuming 8V == 100% and 6V == 0% // Assuming 8V == 100% and 6V == 0%
// Calculate upper PWM according to Voltage Divider formula: // Calculate upper PWM according to Voltage Divider formula:
...@@ -27,7 +27,11 @@ ...@@ -27,7 +27,11 @@
#define BATT_VAL_6V 545 #define BATT_VAL_6V 545
#define BATT_VAL_9V 727 #define BATT_VAL_9V 727
#define MOTOR_VOLT 5.00 #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_6V 545
#define BATT_VAL_9V 727 #define BATT_VAL_9V 727
#define MOTOR_VOLT 5.00 #define MOTOR_VOLT 5.00
......
  • mhocke @mhocke

    mentioned in issue #1

    ·

    mentioned in issue #1

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment