Skip to content

Update to beta 4 #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: robotpy/build-actions/.github/workflows/package-ci.yml@v2025
with:
artifactory_repo_type: vendor
enable_raspbian: false
secrets:
META_REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions gen/AbsoluteEncoderConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
AbsoluteEncoderConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
AbsoluteEncoderConfig:
Apply:
Expand All @@ -13,3 +15,4 @@ classes:
AverageDepth:
StartPulseUs:
EndPulseUs:
ZeroCentered:
1 change: 1 addition & 0 deletions gen/AbsoluteEncoderConfigAccessor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ classes:
GetAverageDepth:
GetStartPulseUs:
GetEndPulseUs:
GetZeroOffset:
2 changes: 2 additions & 0 deletions gen/AlternateEncoderConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
AlternateEncoderConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
enums:
Type:
methods:
Expand Down
2 changes: 2 additions & 0 deletions gen/AnalogSensorConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
AnalogSensorConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
AnalogSensorConfig:
Apply:
Expand Down
2 changes: 2 additions & 0 deletions gen/ClosedLoopConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
ClosedLoopConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
attributes:
maxMotion:
smartMotion:
Expand Down
2 changes: 2 additions & 0 deletions gen/EncoderConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
EncoderConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
EncoderConfig:
Apply:
Expand Down
2 changes: 2 additions & 0 deletions gen/ExternalEncoderConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
ExternalEncoderConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
enums:
Type:
methods:
Expand Down
2 changes: 2 additions & 0 deletions gen/LimitSwitchConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
LimitSwitchConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
enums:
Type:
methods:
Expand Down
2 changes: 2 additions & 0 deletions gen/MAXMotionConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
MAXMotionConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
enums:
MAXMotionPositionMode:
methods:
Expand Down
2 changes: 2 additions & 0 deletions gen/SignalsConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
SignalsConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
SignalsConfig:
Apply:
Expand Down
2 changes: 2 additions & 0 deletions gen/SmartMotionConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
SmartMotionConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
SmartMotionConfig:
Apply:
Expand Down
2 changes: 2 additions & 0 deletions gen/SoftLimitConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
SoftLimitConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
methods:
SoftLimitConfig:
Apply:
Expand Down
33 changes: 33 additions & 0 deletions gen/SparkBase.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,47 @@
---

extra_includes_first:
- rev/REVLibError.h

extra_includes:
- rev/SparkLowLevel.h
- rev/config/SparkBaseConfig.h

# typealias:
# - rev::REVLibError

classes:
SparkBase:
typealias:
- rev::spark::SparkLowLevel::MotorType
- rev::spark::SparkLowLevel::SparkModel
attributes:
m_RelativeEncoder:
ignore: true
m_relativeEncoderCreated:
ignore: true
m_AnalogSensor:
ignore: true
m_analogSensorCreated:
ignore: true
m_AbsoluteEncoder:
ignore: true
m_absoluteEncoderCreated:
ignore: true
m_ClosedLoopController:
ignore: true
m_closedLoopControllerCreated:
ignore: true
m_ForwardLimitSwitch:
ignore: true
m_forwardLimitSwitchCreated:
ignore: true
m_ReverseLimitSwitch:
ignore: true
m_reverseLimitSwitchCreated:
ignore: true
m_setpoint:
ignore: true
enums:
IdleMode:
SoftLimitDirection:
Expand Down Expand Up @@ -72,6 +103,7 @@ classes:
gateDriver:
escEeprom:
firmware:
rawBits:
methods:
Faults:
overloads:
Expand All @@ -87,6 +119,7 @@ classes:
stall:
hasReset:
other:
rawBits:
methods:
Warnings:
overloads:
Expand Down
2 changes: 2 additions & 0 deletions gen/SparkBaseConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

classes:
SparkBaseConfig:
base_qualnames:
BaseConfig: rev::BaseConfig
attributes:
absoluteEncoder:
analogSensor:
Expand Down
3 changes: 3 additions & 0 deletions gen/SparkFlex.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---

extra_includes_first:
- rev/REVLibError.h

extra_includes:
- rev/SparkLowLevel.h

Expand Down
2 changes: 0 additions & 2 deletions gen/SparkLowLevel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ extra_includes_first:

classes:
SparkLowLevel:
typealias:
- rev::REVLibError
attributes:
kAPIMajorVersion:
kAPIMinorVersion:
Expand Down
10 changes: 10 additions & 0 deletions gen/SparkMax.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
---

extra_includes_first:
- rev/REVLibError.h
- rev/SparkLowLevel.h

classes:
SparkMax:
typealias:
- rev::spark::SparkLowLevel::MotorType
- rev::spark::SparkBase::PersistMode
- rev::spark::SparkBase::ResetMode
attributes:
configAccessor:
methods:
SparkMax:
Configure:
GetAlternateEncoder:
return_value_policy: reference_internal
GetAbsoluteEncoder:
return_value_policy: reference_internal
GetForwardLimitSwitch:
return_value_policy: reference_internal
GetReverseLimitSwitch:
return_value_policy: reference_internal
PreGetAbsoluteEncoder:
PreGetForwardLimitSwitch:
PreGetReverseLimitSwitch:
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ author_email = "[email protected]"
url = "https://github.com/robotpy/robotpy-rev"
license = "BSD-3-Clause"
install_requires = [
"wpilib~=2025.0.0b2",
"wpilib~=2025.0.0b3",
]

[build-system]
requires = [
"robotpy-build<2025.0.0b1,~=2025.0.0a4",
"wpilib~=2025.0.0b2",
"robotpy-build<2025.0.0b1,~=2025.0.0a6",
"wpilib~=2025.0.0b3",
]

[tool.robotpy-build]
Expand All @@ -22,14 +22,14 @@ base_package = "rev"
artifact_id = "REVLib-driver"
group_id = "com.revrobotics.frc"
repo_url = "https://maven.revrobotics.com"
version = "2025.0.0-beta-1"
version = "2025.0.0-beta-4"
libs = ["REVLibDriver"]

[tool.robotpy-build.static_libs."revlib".maven_lib_download]
artifact_id = "REVLib-cpp"
group_id = "com.revrobotics.frc"
repo_url = "https://maven.revrobotics.com"
version = "2025.0.0-beta-1"
version = "2025.0.0-beta-4"
libs = ["REVLib"]

[tool.robotpy-build.wrappers."rev"]
Expand Down
Loading