Skip to content

Commit ce7cb76

Browse files
committed
Update to latest Phoenix 5
1 parent d516cab commit ce7cb76

19 files changed

+111
-98
lines changed

.github/workflows/dist.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ on:
1111

1212
jobs:
1313
ci:
14-
uses: robotpy/build-actions/.github/workflows/package-ci.yml@v2023
14+
uses: robotpy/build-actions/.github/workflows/package-ci.yml@v2024
1515
with:
1616
enable_raspbian: false
1717
enable_sphinx_check: false
18+
artifactory_repo_type: vendor
1819
fail_fast: false
20+
python_versions: >-
21+
["3.9", "3.10", "3.11", "3.12"]
1922
secrets:
20-
SSH_USER: ${{ secrets.SSH_USER }}
21-
SSH_KEY: ${{ secrets.SSH_KEY }}
22-
SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }}
2323
META_REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
2424
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
2525
RTD_WEBHOOK: ${{ secrets.RTD_WEBHOOK }}
26+
WPI_ARTIFACTORY_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
27+
WPI_ARTIFACTORY_TOKEN: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
2628
PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }}

ctre/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from . import _init_phoenix6
12
from . import _init_ctre
23

34
# autogenerated by 'robotpy-build create-imports ctre'

ctre/_init_phoenix6.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from phoenix6.phoenix_native import Native
2+
3+
Native.instance()

gen/BaseMotorController.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ classes:
1313
overloads:
1414
"":
1515
rename: __str__
16-
std::string&:
16+
const std::string&:
1717
FilterConfiguration:
1818
shared_ptr: true
1919
attributes:
@@ -322,6 +322,7 @@ classes:
322322
GetSlotConfigs:
323323
GetFilterConfigs:
324324
GetHandle:
325+
ignore: true
325326
GetVictorSPXSimCollection:
326327
BaseConfigAllSettings:
327328
BaseGetAllConfigs:

gen/BasePigeon.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ classes:
5555
GetCompassHeading:
5656
GetCompassFieldStrength:
5757
GetTemp:
58-
overloads:
59-
'[const]':
6058
GetUpTime:
6159
GetRawMagnetometer:
6260
GetBiasedMagnetometer:
@@ -79,6 +77,7 @@ classes:
7977
GetFirmwareVersion:
8078
ClearStickyFaults:
8179
GetLowLevelHandle:
80+
ignore: true
8281
ConfigAllSettings:
8382
GetAllConfigs:
8483
ConfigFactoryDefault:

gen/BufferedTrajectoryPointStream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ classes:
88
Clear:
99
Write:
1010
overloads:
11-
TrajectoryPoint&:
12-
TrajectoryPoint*, uint32_t:
11+
const TrajectoryPoint&:
12+
const TrajectoryPoint*, uint32_t:
1313
GetHandle:
14+
ignore: true

gen/CANdleConfiguration.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ classes:
1010
force_no_trampoline: true
1111
base_qualnames:
1212
CustomParamConfiguration: ctre::phoenix::CustomParamConfiguration
13+
attributes:
14+
stripType:
15+
brightnessScalar:
16+
disableWhenLOS:
17+
statusLedOffWhenActive:
18+
vBatOutputMode:
19+
v5Enabled:
1320
methods:
1421
CANdleConfiguration:
1522
toString:
1623
rename: __str__
17-
18-
inline_code: |
19-
cls_CANdleConfiguration
20-
.def_readwrite("stripType", &ctre::phoenix::led::CANdleConfiguration::stripType,
21-
py::doc("What type of LEDs the CANdle controls"))
22-
.def_readwrite("brightnessScalar", &ctre::phoenix::led::CANdleConfiguration::brightnessScalar,
23-
py::doc("Brightness scalar for all LEDs controlled"))
24-
.def_readwrite("disableWhenLOS", &ctre::phoenix::led::CANdleConfiguration::disableWhenLOS,
25-
py::doc("True to turn off LEDs when Loss of Signal occurrs"))
26-
.def_readwrite("statusLedOffWhenActive", &ctre::phoenix::led::CANdleConfiguration::statusLedOffWhenActive,
27-
py::doc("True to turn off Status LED when CANdle is actively being controlled"))
28-
.def_readwrite("vBatOutputMode", &ctre::phoenix::led::CANdleConfiguration::vBatOutputMode,
29-
py::doc("The behavior of VBat output"))
30-
;

gen/ColorFlowAnimation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
classes:
44
ColorFlowAnimation:
55
subpackage: led
6-
typealias:
7-
- ctre::phoenix::led::ColorFlowAnimation::Direction
86
enums:
97
Direction:
108
methods:

gen/LarsonAnimation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
classes:
44
LarsonAnimation:
55
subpackage: led
6-
typealias:
7-
- ctre::phoenix::led::LarsonAnimation::BounceMode
86
enums:
97
BounceMode:
108
methods:

gen/LimitSwitchType.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ classes:
1313
IsRemote:
1414
toString:
1515
overloads:
16-
ctre::phoenix::motorcontrol::LimitSwitchSource:
16+
LimitSwitchSource:
1717
ignore: true
18-
ctre::phoenix::motorcontrol::RemoteLimitSwitchSource:
18+
RemoteLimitSwitchSource:
1919
ignore: true
20-
ctre::phoenix::motorcontrol::LimitSwitchNormal:
20+
LimitSwitchNormal:
2121
ignore: true

0 commit comments

Comments
 (0)