Skip to content

Commit 7799b3e

Browse files
committed
improve RCM BYTE
1 parent a4d55d6 commit 7799b3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

RCMv2/rcm.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void setupMotors() { }
114114
#define batMonitorPin 36
115115

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

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

175175
// chip address, motor address
176176
#ifndef MOTOR_DRIVER_BAUD
177-
#define MOTOR_DRIVER_BAUD 90000
177+
#define MOTOR_DRIVER_BAUD 100000
178178
#endif
179179

180180
#define portAB uartPin, 1, MOTOR_DRIVER_BAUD
@@ -221,7 +221,7 @@ void setupMotors()
221221
}
222222

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

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

268268
// chip address, motor address
269269
#ifndef MOTOR_DRIVER_BAUD
270-
#define MOTOR_DRIVER_BAUD 110000
270+
#define MOTOR_DRIVER_BAUD 100000
271271
#endif
272272

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

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ default_envs = esp32dev
99
monitor_speed = 115200
1010
framework = arduino
1111
lib_deps =
12-
joshua1024/JMotor@~0.26.0
12+
joshua1024/JMotor@~0.27.1
1313
joshua1024/ESP32_easy_wifi_data@~1.4.3
1414
1515
https://github.com/micro-ROS/micro_ros_arduino#v2.0.7-iron

0 commit comments

Comments
 (0)