Skip to content

Commit 7b3fa7a

Browse files
committed
Separate G27 and G25 shifter calibration
In testing the G25 calibration worked fine for my G27 shifter, but doing my due diligence to set the shift points based on the actual hardware.
1 parent fdb5fb6 commit 7b3fa7a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/SimRacing.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,8 @@ LogitechShifterG27::LogitechShifterG27(
11561156
this->pinModesSet = false;
11571157
this->buttonStates = this->previousButtons = 0x0000; // zero all button data
11581158

1159-
// using the calibration from my G25 shifter, which is probably closer than the Driving Force
1160-
this->setCalibration({ 508, 435 }, { 310, 843 }, { 303, 8 }, { 516, 827 }, { 540, 14 }, { 713, 846 }, { 704, 17 });
1159+
// using the calibration values from my own G27 shifter
1160+
this->setCalibration({ 453, 470 }, { 247, 828 }, { 258, 6 }, { 449, 878 }, { 472, 5 }, { 645, 880 }, { 651, 21 });
11611161
}
11621162

11631163
void LogitechShifterG27::cacheButtons(uint16_t newStates) {
@@ -1407,8 +1407,9 @@ LogitechShifterG25::LogitechShifterG25(
14071407
sequentialProcess(false), // not in sequential mode
14081408
sequentialState(0) // no sequential buttons pressed
14091409
{
1410-
// using the values from my own shifter
1411-
this->setCalibrationSequential(425, 619, 257, 0.70, 0.50);
1410+
// using the calibration values from my own G25 shifter
1411+
this->setCalibration({ 508, 435 }, { 310, 843 }, { 303, 8 }, { 516, 827 }, { 540, 14 }, { 713, 846 }, { 704, 17 });
1412+
this->setCalibrationSequential(425, 619, 257);
14121413
}
14131414

14141415
void LogitechShifterG25::begin() {

0 commit comments

Comments
 (0)