Skip to content

Commit 888845a

Browse files
authored
Merge pull request #115 from strykeforce/2025-initial
2025 Updates
2 parents 043bb03 + 6327a99 commit 888845a

File tree

4 files changed

+45
-35
lines changed

4 files changed

+45
-35
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
}
1212

1313
group = "org.strykeforce"
14-
version = "25.0.1"
14+
version = "25.0.2"
1515

1616
java {
1717
targetCompatibility = JavaVersion.VERSION_17

src/main/java/org/strykeforce/gyro/SF_PIGEON2.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public class SF_PIGEON2 implements Gyro {
1818
public SF_PIGEON2(int deviceId) {
1919
pigeon2 = new Pigeon2(deviceId);
2020
configurator = pigeon2.getConfigurator();
21+
yawGetter = pigeon2.getYaw();
22+
yawRateGetter = pigeon2.getAngularVelocityZWorld();
2123
}
2224

2325
public SF_PIGEON2(int deviceId, String canbus) {

src/main/kotlin/org/strykeforce/telemetry/measurable/TalonFXSMeasureable.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ import org.strykeforce.telemetry.talon.VEL_SCALE
5656

5757
internal const val ANCILLARY_DEVICE_TEMP = "ANCILLARY_DEVICE_TEMP"
5858
internal const val EXT_MOTOR_TEMP = "EXT_MOTOR_TEMP"
59+
internal const val RAW_PULSE_WIDTH_POS = "Raw Pulse Width Pos"
60+
internal const val RAW_QUADRATURE_POS = "Raw Quadrature Pos"
61+
internal const val RAW_PULSE_WIDTH_VEL = "Raw Pulse Width Vel"
62+
internal const val RAW_QUAD_VEL = "Raw Quadrature Vel"
5963

6064
class TalonFXSMeasureable @JvmOverloads constructor(
6165
private val talonFXS: TalonFXS,
@@ -86,6 +90,8 @@ class TalonFXSMeasureable @JvmOverloads constructor(
8690
Measure(MOTOR_VOLTAGE, "Motor Voltage"){talonFXS.motorVoltage.valueAsDouble},
8791
Measure(POSITION, "Position"){talonFXS.position.valueAsDouble},
8892
Measure(POS_SCALE, "Pos. scaled"){talonFXS.position.valueAsDouble * scaleFactor},
93+
Measure(RAW_PULSE_WIDTH_POS, "Raw Pulse Width Pos"){talonFXS.rawPulseWidthPosition.valueAsDouble},
94+
Measure(RAW_QUADRATURE_POS, "Raw Quad Pos"){talonFXS.rawQuadraturePosition.valueAsDouble},
8995
Measure(PROCESSOR_TEMP, "Processor Temp"){talonFXS.processorTemp.valueAsDouble},
9096
Measure(HAS_RESET_OCCURRED, "Has Reset Occurred"){talonFXS.hasResetOccurred().toDouble()},
9197
Measure(REV_LIM, "Reverse Limit Switch Closed"){talonFXS.reverseLimit.valueAsDouble},
@@ -99,6 +105,8 @@ class TalonFXSMeasureable @JvmOverloads constructor(
99105
Measure(TORQUE_CURRENT, "Torque Current"){talonFXS.torqueCurrent.valueAsDouble},
100106
Measure(VELOCITY, "Velocity"){talonFXS.velocity.valueAsDouble},
101107
Measure(VEL_SCALE, "Vel. scaled"){talonFXS.velocity.valueAsDouble * scaleFactor},
108+
Measure(RAW_PULSE_WIDTH_VEL, "Raw Pulse Width Vel"){talonFXS.rawPulseWidthVelocity.valueAsDouble},
109+
Measure(RAW_QUAD_VEL, "Raw Quad Vel"){talonFXS.rawQuadratureVelocity.valueAsDouble},
102110

103111
Measure(CLOSED_LOOP_D_OUTPUT, "Closed Loop Derivative Output"){talonFXS.closedLoopDerivativeOutput.valueAsDouble},
104112
Measure(CLOSED_LOOP_ERROR, "Closed Loop Error"){talonFXS.closedLoopError.valueAsDouble},
@@ -118,7 +126,7 @@ class TalonFXSMeasureable @JvmOverloads constructor(
118126
Measure(DIFF_CLOSED_LOOP_REF, "Differential Closed Loop Reference"){talonFXS.differentialClosedLoopReference.valueAsDouble},
119127
Measure(DIFF_CLOSED_LOOP_REF_SLOPE, "Differential Closed Loop Reference Slope"){talonFXS.differentialClosedLoopReferenceSlope.valueAsDouble},
120128
Measure(DIFF_CLOSED_LOOP_SLOT, "Differential Closed Loop Slot"){talonFXS.differentialClosedLoopSlot.valueAsDouble},
121-
Measure(PULSE_WIDTH_POSITION, "Pulse Width Position") {((talonFXS.position.valueAsDouble * 4096.0).toInt() and 0xFFF).toDouble()}
129+
Measure(PULSE_WIDTH_POSITION, "Pulse Width Position") {((talonFXS.rawPulseWidthPosition.valueAsDouble).toInt() and 0xFFF).toDouble()}
122130
)
123131

124132
override fun equals(other: Any?): Boolean {

vendordeps/Phoenix6-replay-25.2.0.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"fileName": "Phoenix6-replay-frc2025-latest.json",
2+
"fileName": "Phoenix6-replay-25.2.2.json",
33
"name": "CTRE-Phoenix (v6) Replay",
4-
"version": "25.2.1",
4+
"version": "25.2.2",
55
"frcYear": "2025",
66
"uuid": "e7900d8d-826f-4dca-a1ff-182f658e98af",
77
"mavenUrls": [
@@ -19,14 +19,14 @@
1919
{
2020
"groupId": "com.ctre.phoenix6",
2121
"artifactId": "wpiapi-java",
22-
"version": "25.2.1"
22+
"version": "25.2.2"
2323
}
2424
],
2525
"jniDependencies": [
2626
{
2727
"groupId": "com.ctre.phoenix6",
2828
"artifactId": "api-cpp",
29-
"version": "25.2.1",
29+
"version": "25.2.2",
3030
"isJar": false,
3131
"skipInvalidPlatforms": true,
3232
"validPlatforms": [
@@ -37,7 +37,7 @@
3737
{
3838
"groupId": "com.ctre.phoenix6",
3939
"artifactId": "tools",
40-
"version": "25.2.1",
40+
"version": "25.2.2",
4141
"isJar": false,
4242
"skipInvalidPlatforms": true,
4343
"validPlatforms": [
@@ -48,7 +48,7 @@
4848
{
4949
"groupId": "com.ctre.phoenix6.replay",
5050
"artifactId": "api-cpp-replay",
51-
"version": "25.2.1",
51+
"version": "25.2.2",
5252
"isJar": false,
5353
"skipInvalidPlatforms": true,
5454
"validPlatforms": [
@@ -62,7 +62,7 @@
6262
{
6363
"groupId": "com.ctre.phoenix6.replay",
6464
"artifactId": "tools-replay",
65-
"version": "25.2.1",
65+
"version": "25.2.2",
6666
"isJar": false,
6767
"skipInvalidPlatforms": true,
6868
"validPlatforms": [
@@ -76,7 +76,7 @@
7676
{
7777
"groupId": "com.ctre.phoenix6.sim",
7878
"artifactId": "api-cpp-sim",
79-
"version": "25.2.1",
79+
"version": "25.2.2",
8080
"isJar": false,
8181
"skipInvalidPlatforms": true,
8282
"validPlatforms": [
@@ -90,7 +90,7 @@
9090
{
9191
"groupId": "com.ctre.phoenix6.sim",
9292
"artifactId": "tools-sim",
93-
"version": "25.2.1",
93+
"version": "25.2.2",
9494
"isJar": false,
9595
"skipInvalidPlatforms": true,
9696
"validPlatforms": [
@@ -104,7 +104,7 @@
104104
{
105105
"groupId": "com.ctre.phoenix6.sim",
106106
"artifactId": "simTalonSRX",
107-
"version": "25.2.1",
107+
"version": "25.2.2",
108108
"isJar": false,
109109
"skipInvalidPlatforms": true,
110110
"validPlatforms": [
@@ -118,7 +118,7 @@
118118
{
119119
"groupId": "com.ctre.phoenix6.sim",
120120
"artifactId": "simVictorSPX",
121-
"version": "25.2.1",
121+
"version": "25.2.2",
122122
"isJar": false,
123123
"skipInvalidPlatforms": true,
124124
"validPlatforms": [
@@ -132,7 +132,7 @@
132132
{
133133
"groupId": "com.ctre.phoenix6.sim",
134134
"artifactId": "simPigeonIMU",
135-
"version": "25.2.1",
135+
"version": "25.2.2",
136136
"isJar": false,
137137
"skipInvalidPlatforms": true,
138138
"validPlatforms": [
@@ -146,7 +146,7 @@
146146
{
147147
"groupId": "com.ctre.phoenix6.sim",
148148
"artifactId": "simCANCoder",
149-
"version": "25.2.1",
149+
"version": "25.2.2",
150150
"isJar": false,
151151
"skipInvalidPlatforms": true,
152152
"validPlatforms": [
@@ -160,7 +160,7 @@
160160
{
161161
"groupId": "com.ctre.phoenix6.sim",
162162
"artifactId": "simProTalonFX",
163-
"version": "25.2.1",
163+
"version": "25.2.2",
164164
"isJar": false,
165165
"skipInvalidPlatforms": true,
166166
"validPlatforms": [
@@ -174,7 +174,7 @@
174174
{
175175
"groupId": "com.ctre.phoenix6.sim",
176176
"artifactId": "simProTalonFXS",
177-
"version": "25.2.1",
177+
"version": "25.2.2",
178178
"isJar": false,
179179
"skipInvalidPlatforms": true,
180180
"validPlatforms": [
@@ -188,7 +188,7 @@
188188
{
189189
"groupId": "com.ctre.phoenix6.sim",
190190
"artifactId": "simProCANcoder",
191-
"version": "25.2.1",
191+
"version": "25.2.2",
192192
"isJar": false,
193193
"skipInvalidPlatforms": true,
194194
"validPlatforms": [
@@ -202,7 +202,7 @@
202202
{
203203
"groupId": "com.ctre.phoenix6.sim",
204204
"artifactId": "simProPigeon2",
205-
"version": "25.2.1",
205+
"version": "25.2.2",
206206
"isJar": false,
207207
"skipInvalidPlatforms": true,
208208
"validPlatforms": [
@@ -216,7 +216,7 @@
216216
{
217217
"groupId": "com.ctre.phoenix6.sim",
218218
"artifactId": "simProCANrange",
219-
"version": "25.2.1",
219+
"version": "25.2.2",
220220
"isJar": false,
221221
"skipInvalidPlatforms": true,
222222
"validPlatforms": [
@@ -232,7 +232,7 @@
232232
{
233233
"groupId": "com.ctre.phoenix6",
234234
"artifactId": "wpiapi-cpp",
235-
"version": "25.2.1",
235+
"version": "25.2.2",
236236
"libName": "CTRE_Phoenix6_WPI",
237237
"headerClassifier": "headers",
238238
"sharedLibrary": true,
@@ -245,7 +245,7 @@
245245
{
246246
"groupId": "com.ctre.phoenix6",
247247
"artifactId": "tools",
248-
"version": "25.2.1",
248+
"version": "25.2.2",
249249
"libName": "CTRE_PhoenixTools",
250250
"headerClassifier": "headers",
251251
"sharedLibrary": true,
@@ -258,7 +258,7 @@
258258
{
259259
"groupId": "com.ctre.phoenix6.replay",
260260
"artifactId": "wpiapi-cpp-replay",
261-
"version": "25.2.1",
261+
"version": "25.2.2",
262262
"libName": "CTRE_Phoenix6_WPIReplay",
263263
"headerClassifier": "headers",
264264
"sharedLibrary": true,
@@ -274,7 +274,7 @@
274274
{
275275
"groupId": "com.ctre.phoenix6.replay",
276276
"artifactId": "tools-replay",
277-
"version": "25.2.1",
277+
"version": "25.2.2",
278278
"libName": "CTRE_PhoenixTools_Replay",
279279
"headerClassifier": "headers",
280280
"sharedLibrary": true,
@@ -290,7 +290,7 @@
290290
{
291291
"groupId": "com.ctre.phoenix6.sim",
292292
"artifactId": "wpiapi-cpp-sim",
293-
"version": "25.2.1",
293+
"version": "25.2.2",
294294
"libName": "CTRE_Phoenix6_WPISim",
295295
"headerClassifier": "headers",
296296
"sharedLibrary": true,
@@ -306,7 +306,7 @@
306306
{
307307
"groupId": "com.ctre.phoenix6.sim",
308308
"artifactId": "tools-sim",
309-
"version": "25.2.1",
309+
"version": "25.2.2",
310310
"libName": "CTRE_PhoenixTools_Sim",
311311
"headerClassifier": "headers",
312312
"sharedLibrary": true,
@@ -322,7 +322,7 @@
322322
{
323323
"groupId": "com.ctre.phoenix6.sim",
324324
"artifactId": "simTalonSRX",
325-
"version": "25.2.1",
325+
"version": "25.2.2",
326326
"libName": "CTRE_SimTalonSRX",
327327
"headerClassifier": "headers",
328328
"sharedLibrary": true,
@@ -338,7 +338,7 @@
338338
{
339339
"groupId": "com.ctre.phoenix6.sim",
340340
"artifactId": "simVictorSPX",
341-
"version": "25.2.1",
341+
"version": "25.2.2",
342342
"libName": "CTRE_SimVictorSPX",
343343
"headerClassifier": "headers",
344344
"sharedLibrary": true,
@@ -354,7 +354,7 @@
354354
{
355355
"groupId": "com.ctre.phoenix6.sim",
356356
"artifactId": "simPigeonIMU",
357-
"version": "25.2.1",
357+
"version": "25.2.2",
358358
"libName": "CTRE_SimPigeonIMU",
359359
"headerClassifier": "headers",
360360
"sharedLibrary": true,
@@ -370,7 +370,7 @@
370370
{
371371
"groupId": "com.ctre.phoenix6.sim",
372372
"artifactId": "simCANCoder",
373-
"version": "25.2.1",
373+
"version": "25.2.2",
374374
"libName": "CTRE_SimCANCoder",
375375
"headerClassifier": "headers",
376376
"sharedLibrary": true,
@@ -386,7 +386,7 @@
386386
{
387387
"groupId": "com.ctre.phoenix6.sim",
388388
"artifactId": "simProTalonFX",
389-
"version": "25.2.1",
389+
"version": "25.2.2",
390390
"libName": "CTRE_SimProTalonFX",
391391
"headerClassifier": "headers",
392392
"sharedLibrary": true,
@@ -402,7 +402,7 @@
402402
{
403403
"groupId": "com.ctre.phoenix6.sim",
404404
"artifactId": "simProTalonFXS",
405-
"version": "25.2.1",
405+
"version": "25.2.2",
406406
"libName": "CTRE_SimProTalonFXS",
407407
"headerClassifier": "headers",
408408
"sharedLibrary": true,
@@ -418,7 +418,7 @@
418418
{
419419
"groupId": "com.ctre.phoenix6.sim",
420420
"artifactId": "simProCANcoder",
421-
"version": "25.2.1",
421+
"version": "25.2.2",
422422
"libName": "CTRE_SimProCANcoder",
423423
"headerClassifier": "headers",
424424
"sharedLibrary": true,
@@ -434,7 +434,7 @@
434434
{
435435
"groupId": "com.ctre.phoenix6.sim",
436436
"artifactId": "simProPigeon2",
437-
"version": "25.2.1",
437+
"version": "25.2.2",
438438
"libName": "CTRE_SimProPigeon2",
439439
"headerClassifier": "headers",
440440
"sharedLibrary": true,
@@ -450,7 +450,7 @@
450450
{
451451
"groupId": "com.ctre.phoenix6.sim",
452452
"artifactId": "simProCANrange",
453-
"version": "25.2.1",
453+
"version": "25.2.2",
454454
"libName": "CTRE_SimProCANrange",
455455
"headerClassifier": "headers",
456456
"sharedLibrary": true,

0 commit comments

Comments
 (0)