Skip to content

Commit ee83baf

Browse files
authored
Merge pull request #184 from robotpy/2025-dev
Updates for 2025
2 parents c00cf24 + 697c471 commit ee83baf

File tree

6 files changed

+31
-82
lines changed

6 files changed

+31
-82
lines changed

.github/workflows/dist.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ on:
1111

1212
jobs:
1313
ci:
14-
uses: robotpy/build-actions/.github/workflows/package-ci.yml@v2024
14+
uses: robotpy/build-actions/.github/workflows/package-ci.yml@v2025
1515
with:
1616
enable_raspbian: false
1717
enable_sphinx_check: false
1818
artifactory_repo_type: vendor
1919
fail_fast: false
2020
python_versions: >-
21-
["3.9", "3.10", "3.11", "3.12"]
21+
["3.12", "3.13"]
2222
secrets:
2323
META_REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
2424
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}

phoenix5/__init__.py

+3-30
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from . import _init_phoenix6
22
from . import _init_ctre
33

4-
# autogenerated by 'robotpy-build create-imports ctre'
4+
from .version import version as __version__
5+
6+
# autogenerated by 'robotpy-build create-imports phoenix5 phoenix5._ctre'
57
from ._ctre import (
68
BaseMotorController,
79
BaseMotorControllerConfiguration,
@@ -47,10 +49,8 @@
4749
LimitSwitchRoutines,
4850
LimitSwitchSource,
4951
MotionProfileStatus,
50-
MotorCommutation,
5152
MovingAverage,
5253
NeutralMode,
53-
Orchestra,
5454
ParamEnum,
5555
RemoteFeedbackDevice,
5656
RemoteLimitSwitchSource,
@@ -60,21 +60,11 @@
6060
SetValueMotionProfile,
6161
SlotConfigUtil,
6262
SlotConfiguration,
63-
StatorCurrentLimitConfiguration,
6463
StatusFrame,
6564
StatusFrameEnhanced,
6665
StatusFrameRoutines,
6766
StickyFaults,
6867
SupplyCurrentLimitConfiguration,
69-
TalonFX,
70-
TalonFXConfigUtil,
71-
TalonFXConfiguration,
72-
TalonFXControlMode,
73-
TalonFXFeedbackDevice,
74-
TalonFXInvertType,
75-
TalonFXPIDSetConfiguration,
76-
TalonFXSensorCollection,
77-
TalonFXSimCollection,
7868
TalonSRX,
7969
TalonSRXConfigUtil,
8070
TalonSRXConfiguration,
@@ -93,7 +83,6 @@
9383
VictorSPXPIDSetConfiguration,
9484
VictorSPXSimCollection,
9585
WPI_BaseMotorController,
96-
WPI_TalonFX,
9786
WPI_TalonSRX,
9887
WPI_VictorSPX,
9988
)
@@ -143,10 +132,8 @@
143132
"LimitSwitchRoutines",
144133
"LimitSwitchSource",
145134
"MotionProfileStatus",
146-
"MotorCommutation",
147135
"MovingAverage",
148136
"NeutralMode",
149-
"Orchestra",
150137
"ParamEnum",
151138
"RemoteFeedbackDevice",
152139
"RemoteLimitSwitchSource",
@@ -156,21 +143,11 @@
156143
"SetValueMotionProfile",
157144
"SlotConfigUtil",
158145
"SlotConfiguration",
159-
"StatorCurrentLimitConfiguration",
160146
"StatusFrame",
161147
"StatusFrameEnhanced",
162148
"StatusFrameRoutines",
163149
"StickyFaults",
164150
"SupplyCurrentLimitConfiguration",
165-
"TalonFX",
166-
"TalonFXConfigUtil",
167-
"TalonFXConfiguration",
168-
"TalonFXControlMode",
169-
"TalonFXFeedbackDevice",
170-
"TalonFXInvertType",
171-
"TalonFXPIDSetConfiguration",
172-
"TalonFXSensorCollection",
173-
"TalonFXSimCollection",
174151
"TalonSRX",
175152
"TalonSRXConfigUtil",
176153
"TalonSRXConfiguration",
@@ -189,10 +166,6 @@
189166
"VictorSPXPIDSetConfiguration",
190167
"VictorSPXSimCollection",
191168
"WPI_BaseMotorController",
192-
"WPI_TalonFX",
193169
"WPI_TalonSRX",
194170
"WPI_VictorSPX",
195171
]
196-
197-
198-
from .version import version as __version__

phoenix5/_osx_phoenix6_pkgcfg.py

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def get_library_names():
3232
"CTRE_SimProCANcoder",
3333
"CTRE_SimProPigeon2",
3434
"CTRE_SimProTalonFX",
35-
"CTRE_SimTalonFX",
3635
"CTRE_SimTalonSRX",
3736
"CTRE_SimVictorSPX",
3837
]
@@ -46,7 +45,6 @@ def get_library_full_names():
4645
"libCTRE_SimProCANcoder.dylib",
4746
"libCTRE_SimProPigeon2.dylib",
4847
"libCTRE_SimProTalonFX.dylib",
49-
"libCTRE_SimTalonFX.dylib",
5048
"libCTRE_SimTalonSRX.dylib",
5149
"libCTRE_SimVictorSPX.dylib",
5250
]

phoenix5/sensors.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# autogenerated by 'robotpy-build create-imports ctre ctre._ctre.sensors'
22
from ._ctre.sensors import (
33
AbsoluteSensorRange,
4-
AxisDirection,
54
BasePigeon,
65
BasePigeonConfigUtils,
76
BasePigeonConfiguration,
@@ -14,11 +13,6 @@
1413
CANCoderStatusFrame,
1514
CANCoderStickyFaults,
1615
MagnetFieldStrength,
17-
Pigeon2,
18-
Pigeon2ConfigUtils,
19-
Pigeon2Configuration,
20-
Pigeon2_Faults,
21-
Pigeon2_StickyFaults,
2216
PigeonIMU,
2317
PigeonIMUConfigUtils,
2418
PigeonIMUConfiguration,
@@ -30,13 +24,11 @@
3024
SensorTimeBase,
3125
SensorVelocityMeasPeriod,
3226
WPI_CANCoder,
33-
WPI_Pigeon2,
3427
WPI_PigeonIMU,
3528
)
3629

3730
__all__ = [
3831
"AbsoluteSensorRange",
39-
"AxisDirection",
4032
"BasePigeon",
4133
"BasePigeonConfigUtils",
4234
"BasePigeonConfiguration",
@@ -49,11 +41,6 @@
4941
"CANCoderStatusFrame",
5042
"CANCoderStickyFaults",
5143
"MagnetFieldStrength",
52-
"Pigeon2",
53-
"Pigeon2ConfigUtils",
54-
"Pigeon2Configuration",
55-
"Pigeon2_Faults",
56-
"Pigeon2_StickyFaults",
5744
"PigeonIMU",
5845
"PigeonIMUConfigUtils",
5946
"PigeonIMUConfiguration",
@@ -65,6 +52,5 @@
6552
"SensorTimeBase",
6653
"SensorVelocityMeasPeriod",
6754
"WPI_CANCoder",
68-
"WPI_Pigeon2",
6955
"WPI_PigeonIMU",
7056
]

pyproject.toml

+24-24
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ author_email = "[email protected]"
66
url = "https://github.com/robotpy/robotpy-ctre"
77
license = "MIT"
88
install_requires = [
9-
"wpilib<2025.0.0,>=2024.3.2",
10-
"phoenix6~=24.2",
9+
"wpilib~=2025.0.0b1",
10+
"phoenix6~=25.0.0b2",
1111
]
1212

1313
[build-system]
1414
requires = [
15-
"robotpy-build<2025.0.0,>=2024.0.0",
16-
"wpilib<2025.0.0,>=2024.3.2",
17-
"phoenix6~=24.2",
15+
"robotpy-build<2025.0.0b1,~=2025.0.0a1",
16+
"wpilib~=2025.0.0b1",
17+
"phoenix6~=25.0.0b2",
1818
]
1919

2020
[tool.robotpy-build]
@@ -46,7 +46,7 @@ depends = [
4646
artifact_id = "wpiapi-cpp"
4747
group_id = "com.ctre.phoenix"
4848
repo_url = "https://maven.ctr-electronics.com/release"
49-
version = "5.33.1"
49+
version = "5.34.0-beta-2"
5050
libs = [
5151
"CTRE_Phoenix_WPI",
5252
]
@@ -66,7 +66,7 @@ depends = [
6666
artifact_id = "api-cpp"
6767
group_id = "com.ctre.phoenix"
6868
repo_url = "https://maven.ctr-electronics.com/release"
69-
version = "5.33.1"
69+
version = "5.34.0-beta-2"
7070
libs = [
7171
"CTRE_Phoenix",
7272
]
@@ -85,7 +85,7 @@ depends = [
8585
artifact_id = "cci"
8686
group_id = "com.ctre.phoenix"
8787
repo_url = "https://maven.ctr-electronics.com/release"
88-
version = "5.33.1"
88+
version = "5.34.0-beta-2"
8989
libs = [
9090
"CTRE_PhoenixCCI",
9191
]
@@ -101,7 +101,7 @@ ignore = false
101101
artifact_id = "tools"
102102
group_id = "com.ctre.phoenix6"
103103
repo_url = "https://maven.ctr-electronics.com/release"
104-
version = "24.2.0"
104+
version = "25.0.0-beta-2"
105105
libs = []
106106

107107
[tool.robotpy-build.wrappers."phoenix5._wpiapi_cpp_sim"]
@@ -121,7 +121,7 @@ ignore = true
121121
artifact_id = "wpiapi-cpp-sim"
122122
group_id = "com.ctre.phoenix.sim"
123123
repo_url = "https://maven.ctr-electronics.com/release"
124-
version = "5.33.1"
124+
version = "5.34.0-beta-2"
125125
libs = [
126126
"CTRE_Phoenix_WPISim",
127127
]
@@ -140,7 +140,7 @@ ignore = true
140140
artifact_id = "api-cpp-sim"
141141
group_id = "com.ctre.phoenix.sim"
142142
repo_url = "https://maven.ctr-electronics.com/release"
143-
version = "5.33.1"
143+
version = "5.34.0-beta-2"
144144
libs = [
145145
"CTRE_PhoenixSim",
146146
]
@@ -164,7 +164,7 @@ ignore = true
164164
artifact_id = "cci-sim"
165165
group_id = "com.ctre.phoenix.sim"
166166
repo_url = "https://maven.ctr-electronics.com/release"
167-
version = "5.33.1"
167+
version = "5.34.0-beta-2"
168168
libs = [
169169
"CTRE_PhoenixCCISim",
170170
]
@@ -181,7 +181,7 @@ ignore = true
181181
artifact_id = "tools-sim"
182182
group_id = "com.ctre.phoenix6.sim"
183183
repo_url = "https://maven.ctr-electronics.com/release"
184-
version = "24.2.0"
184+
version = "25.0.0-beta-2"
185185
libs = []
186186
# libs = [
187187
# "CTRE_PhoenixTools_Sim",
@@ -235,13 +235,13 @@ depends = [
235235

236236
# ctre/phoenix/motorcontrol/can
237237
WPI_BaseMotorController = "ctre/phoenix/motorcontrol/can/WPI_BaseMotorController.h"
238-
WPI_TalonFX = "ctre/phoenix/motorcontrol/can/WPI_TalonFX.h"
238+
# WPI_TalonFX = "ctre/phoenix/motorcontrol/can/WPI_TalonFX.h"
239239
WPI_TalonSRX = "ctre/phoenix/motorcontrol/can/WPI_TalonSRX.h"
240240
WPI_VictorSPX = "ctre/phoenix/motorcontrol/can/WPI_VictorSPX.h"
241241

242242
# ctre/phoenix/sensors
243243
WPI_CANCoder = "ctre/phoenix/sensors/WPI_CANCoder.h"
244-
WPI_Pigeon2 = "ctre/phoenix/sensors/WPI_Pigeon2.h"
244+
# WPI_Pigeon2 = "ctre/phoenix/sensors/WPI_Pigeon2.h"
245245
WPI_PigeonIMU = "ctre/phoenix/sensors/WPI_PigeonIMU.h"
246246

247247
# ctre/phoenix/tasking
@@ -291,20 +291,20 @@ IFollower = "ctre/phoenix/motorcontrol/IFollower.h"
291291
IMotorController = "ctre/phoenix/motorcontrol/IMotorController.h"
292292
IMotorControllerEnhanced = "ctre/phoenix/motorcontrol/IMotorControllerEnhanced.h"
293293
SensorCollection = "ctre/phoenix/motorcontrol/SensorCollection.h"
294-
TalonFXSensorCollection = "ctre/phoenix/motorcontrol/TalonFXSensorCollection.h"
295-
TalonFXSimCollection = "ctre/phoenix/motorcontrol/TalonFXSimCollection.h"
294+
# TalonFXSensorCollection = "ctre/phoenix/motorcontrol/TalonFXSensorCollection.h"
295+
# TalonFXSimCollection = "ctre/phoenix/motorcontrol/TalonFXSimCollection.h"
296296
TalonSRXSimCollection = "ctre/phoenix/motorcontrol/TalonSRXSimCollection.h"
297297
VictorSPXSimCollection = "ctre/phoenix/motorcontrol/VictorSPXSimCollection.h"
298298

299299
# ctre/phoenix/motorcontrol/can
300300
BaseMotorController = "ctre/phoenix/motorcontrol/can/BaseMotorController.h"
301301
BaseTalon = "ctre/phoenix/motorcontrol/can/BaseTalon.h"
302-
TalonFX = "ctre/phoenix/motorcontrol/can/TalonFX.h"
302+
# TalonFX = "ctre/phoenix/motorcontrol/can/TalonFX.h"
303303
TalonSRX = "ctre/phoenix/motorcontrol/can/TalonSRX.h"
304304
VictorSPX = "ctre/phoenix/motorcontrol/can/VictorSPX.h"
305305

306306
# ctre/phoenix/music
307-
Orchestra = "ctre/phoenix/music/Orchestra.h"
307+
# Orchestra = "ctre/phoenix/music/Orchestra.h"
308308

309309
# ctre/phoenix/platform/can
310310
# PlatformCAN = "ctre/phoenix/platform/can/PlatformCAN.h"
@@ -314,7 +314,7 @@ BasePigeon = "ctre/phoenix/sensors/BasePigeon.h"
314314
BasePigeonSimCollection = "ctre/phoenix/sensors/BasePigeonSimCollection.h"
315315
CANCoder = "ctre/phoenix/sensors/CANCoder.h"
316316
CANCoderSimCollection = "ctre/phoenix/sensors/CANCoderSimCollection.h"
317-
Pigeon2 = "ctre/phoenix/sensors/Pigeon2.h"
317+
# Pigeon2 = "ctre/phoenix/sensors/Pigeon2.h"
318318
PigeonIMU = "ctre/phoenix/sensors/PigeonIMU.h"
319319

320320
# ctre/phoenix/signals
@@ -417,11 +417,11 @@ FeedbackDevice = "ctre/phoenix/motorcontrol/FeedbackDevice.h"
417417
FollowerType = "ctre/phoenix/motorcontrol/FollowerType.h"
418418
InvertType = "ctre/phoenix/motorcontrol/InvertType.h"
419419
LimitSwitchType = "ctre/phoenix/motorcontrol/LimitSwitchType.h"
420-
MotorCommutation = "ctre/phoenix/motorcontrol/MotorCommutation.h"
420+
# MotorCommutation = "ctre/phoenix/motorcontrol/MotorCommutation.h"
421421
NeutralMode = "ctre/phoenix/motorcontrol/NeutralMode.h"
422422
RemoteSensorSource = "ctre/phoenix/motorcontrol/RemoteSensorSource.h"
423423
SensorTerm = "ctre/phoenix/motorcontrol/SensorTerm.h"
424-
StatorCurrentLimitConfiguration = "ctre/phoenix/motorcontrol/StatorCurrentLimitConfiguration.h"
424+
# StatorCurrentLimitConfiguration = "ctre/phoenix/motorcontrol/StatorCurrentLimitConfiguration.h"
425425
StatusFrame = "ctre/phoenix/motorcontrol/StatusFrame.h"
426426
StickyFaults = "ctre/phoenix/motorcontrol/StickyFaults.h"
427427
SupplyCurrentLimitConfiguration = "ctre/phoenix/motorcontrol/SupplyCurrentLimitConfiguration.h"
@@ -445,8 +445,8 @@ CANCoderFaults = "ctre/phoenix/sensors/CANCoderFaults.h"
445445
CANCoderStatusFrame = "ctre/phoenix/sensors/CANCoderStatusFrame.h"
446446
CANCoderStickyFaults = "ctre/phoenix/sensors/CANCoderStickyFaults.h"
447447
MagnetFieldStrength = "ctre/phoenix/sensors/MagnetFieldStrength.h"
448-
Pigeon2_Faults = "ctre/phoenix/sensors/Pigeon2_Faults.h"
449-
Pigeon2_StickyFaults = "ctre/phoenix/sensors/Pigeon2_StickyFaults.h"
448+
# Pigeon2_Faults = "ctre/phoenix/sensors/Pigeon2_Faults.h"
449+
# Pigeon2_StickyFaults = "ctre/phoenix/sensors/Pigeon2_StickyFaults.h"
450450
PigeonIMU_ControlFrame = "ctre/phoenix/sensors/PigeonIMU_ControlFrame.h"
451451
PigeonIMU_Faults = "ctre/phoenix/sensors/PigeonIMU_Faults.h"
452452
PigeonIMU_StatusFrame = "ctre/phoenix/sensors/PigeonIMU_StatusFrame.h"

tests/test_ctre.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ def test_wpi_talonsrx():
99
del m
1010

1111

12-
def test_wpi_talonfx():
13-
m = phoenix5.WPI_TalonFX(1)
14-
m.setNeutralMode(phoenix5.NeutralMode.Brake)
15-
m.set(0.5)
16-
assert m.get() == 0.5
17-
del m
18-
19-
2012
def test_wpi_victorspx():
2113
m = phoenix5.WPI_VictorSPX(2)
2214
m.setNeutralMode(phoenix5.NeutralMode.Brake)
@@ -26,8 +18,8 @@ def test_wpi_victorspx():
2618

2719

2820
def test_follow():
29-
m1 = phoenix5.WPI_TalonFX(3)
30-
m2 = phoenix5.WPI_TalonFX(4)
21+
m1 = phoenix5.WPI_TalonSRX(3)
22+
m2 = phoenix5.WPI_VictorSPX(4)
3123
m2.follow(m1)
3224
m1.set(0.5)
3325
assert m1.get() == 0.5

0 commit comments

Comments
 (0)