[xrp] Update XRP for new SparkFun RP2350 Board (#7880)

Enables servos 3 and 4 usage on the new XRP board.
This commit is contained in:
jpokornyiii
2025-03-26 10:50:09 -04:00
committed by GitHub
parent 1efaaefd78
commit dcd397e007
3 changed files with 9 additions and 3 deletions

View File

@@ -142,6 +142,10 @@ void XRP::HandleServoSimValueChanged(const wpi::json& data) {
deviceId = 4;
} else if (data["device"] == "servo2") {
deviceId = 5;
} else if (data["device"] == "servo3") {
deviceId = 6;
} else if (data["device"] == "servo4") {
deviceId = 7;
}
if (deviceId != -1 && servoData.find("<position") != servoData.end()) {