Skip to content

Commit

Permalink
improve RCM BYTE
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Oct 6, 2024
1 parent a4d55d6 commit 7799b3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions RCMv2/rcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void setupMotors() { }
#define batMonitorPin 36

#ifndef OVERRIDE_DEFAULT_VOLTAGE_COMP
const int dacUnitsPerVolt = 350; // increasing this number decreases the calculated voltage
const int dacUnitsPerVolt = 310; // increasing this number decreases the calculated voltage
JVoltageCompMeasure<10> voltageComp = JVoltageCompMeasure<10>(batMonitorPin, dacUnitsPerVolt);
#endif

Expand Down Expand Up @@ -174,7 +174,7 @@ CRGB RSLcolor = CRGB(250, 45, 0); // orange

// chip address, motor address
#ifndef MOTOR_DRIVER_BAUD
#define MOTOR_DRIVER_BAUD 90000
#define MOTOR_DRIVER_BAUD 100000
#endif

#define portAB uartPin, 1, MOTOR_DRIVER_BAUD
Expand Down Expand Up @@ -221,7 +221,7 @@ void setupMotors()
}

#ifndef OVERRIDE_DEFAULT_VOLTAGE_COMP
const int dacUnitsPerVolt = 350; // increasing this number decreases the calculated voltage
const int dacUnitsPerVolt = 310; // increasing this number decreases the calculated voltage
JVoltageCompMeasure<10> voltageComp = JVoltageCompMeasure<10>(batMonitorPin, dacUnitsPerVolt);
#endif

Expand Down Expand Up @@ -267,7 +267,7 @@ CRGB RSLcolor = CRGB(250, 45, 0); // orange

// chip address, motor address
#ifndef MOTOR_DRIVER_BAUD
#define MOTOR_DRIVER_BAUD 110000
#define MOTOR_DRIVER_BAUD 100000
#endif

#define portAB uartPin, 0, MOTOR_DRIVER_BAUD
Expand Down Expand Up @@ -295,7 +295,7 @@ void setupMotors()
digitalWrite(motorsEnablePin, HIGH);
}
#ifndef OVERRIDE_DEFAULT_VOLTAGE_COMP
const int dacUnitsPerVolt = 350; // increasing this number decreases the calculated voltage
const int dacUnitsPerVolt = 310; // increasing this number decreases the calculated voltage
JVoltageCompMeasure<10> voltageComp = JVoltageCompMeasure<10>(batMonitorPin, dacUnitsPerVolt);
#endif

Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default_envs = esp32dev
monitor_speed = 115200
framework = arduino
lib_deps =
joshua1024/JMotor@~0.26.0
joshua1024/JMotor@~0.27.1
joshua1024/ESP32_easy_wifi_data@~1.4.3
fastled/[email protected]
https://github.com/micro-ROS/micro_ros_arduino#v2.0.7-iron
Expand Down

0 comments on commit 7799b3e

Please sign in to comment.