Skip to content
Open
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 subprojects/robotpy-hal/hal/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = __version__ = "2025.3.2.2"
2 changes: 1 addition & 1 deletion subprojects/robotpy-wpilib/semiwrap/Color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ inline_code: |
^ (std::hash<double>{}(self->green) << 1)
^ (std::hash<double>{}(self->blue) << 2)
);
return h != -1 ? h : -2;
return h != static_cast<size_t>(-1) ? h : -2;
})
.def("__repr__", [](Color *self) {
return "Color("
Expand Down
3 changes: 2 additions & 1 deletion subprojects/robotpy-wpimath/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ update_init = [
"wpimath.estimator wpimath._controls._controls.estimator",
"wpimath.filter",
"wpimath.geometry",
"wpimath.kinematics",
"wpimath.interpolation",
"wpimath.optimization wpimath._controls._controls.optimization",
"wpimath.path wpimath._controls._controls.path",
"wpimath.spline",
Expand Down Expand Up @@ -1574,7 +1576,6 @@ DifferentialDriveAccelerationLimiter = "frc/controller/DifferentialDriveAccelera
DifferentialDriveFeedforward = "frc/controller/DifferentialDriveFeedforward.h"
DifferentialDriveWheelVoltages = "frc/controller/DifferentialDriveWheelVoltages.h"
ElevatorFeedforward = "frc/controller/ElevatorFeedforward.h"
HolonomicDriveController = "frc/controller/HolonomicDriveController.h"
ImplicitModelFollower = "frc/controller/ImplicitModelFollower.h"
LTVDifferentialDriveController = "frc/controller/LTVDifferentialDriveController.h"
LTVUnicycleController = "frc/controller/LTVUnicycleController.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
defaults:
subpackage: controller

classes:
frc::DifferentialDriveFeedforward:
force_type_casters:
Expand Down
6 changes: 6 additions & 0 deletions subprojects/robotpy-wpimath/tests/cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ authors = [
{name = "RobotPy Development Team", email = "[email protected]"},
]
license = "BSD-3-Clause"
dependencies = [
"robotpy-wpimath==2027.0.0a2",
]

[tool.hatch.build.hooks.semiwrap]
[tool.hatch.build.hooks.meson]

[tool.semiwrap]
update_init = [
"wpimath_test wpimath_test._wpimath_test",
]

[tool.semiwrap.extension_modules."wpimath_test._wpimath_test"]
name = "wpimath_test"
Expand Down
11 changes: 7 additions & 4 deletions subprojects/robotpy-wpimath/tests/cpp/semiwrap/module.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---

classes:
SomeClass:
attributes:
kDefaultPeriod:
s_constant:
ms_constant1:
ms_constant2:
ms_constant3:
five_ft:
methods:
checkDefaultByName:
checkDefaultByName1:
checkDefaultByName2:
checkDefaultByNum1:
param_override:
period:
Expand All @@ -16,4 +18,5 @@ classes:
period:
default: 0.050_s
ms2s:
s2ms:
ft2m:
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import _init__wpimath_test

# autogenerated by 'robotpy-build create-imports wpimath_test'
# autogenerated by 'semiwrap create-imports wpimath_test wpimath_test._wpimath_test'
from ._wpimath_test import SomeClass

__all__ = ["SomeClass"]
Expand Down
2 changes: 2 additions & 0 deletions subprojects/robotpy-wpimath/wpimath/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ._wpimath import (
angleModulus,
applyDeadband,
copySignPow,
floorDiv,
floorMod,
inputModulus,
Expand All @@ -17,6 +18,7 @@
__all__ = [
"angleModulus",
"applyDeadband",
"copySignPow",
"floorDiv",
"floorMod",
"inputModulus",
Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-wpimath/wpimath/controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
ControlAffinePlantInversionFeedforward_2_1,
ControlAffinePlantInversionFeedforward_2_2,
DifferentialDriveAccelerationLimiter,
DifferentialDriveFeedforward,
DifferentialDriveWheelVoltages,
ElevatorFeedforward,
HolonomicDriveController,
ImplicitModelFollower_1_1,
ImplicitModelFollower_2_1,
ImplicitModelFollower_2_2,
Expand Down Expand Up @@ -36,9 +36,9 @@
"ControlAffinePlantInversionFeedforward_2_1",
"ControlAffinePlantInversionFeedforward_2_2",
"DifferentialDriveAccelerationLimiter",
"DifferentialDriveFeedforward",
"DifferentialDriveWheelVoltages",
"ElevatorFeedforward",
"HolonomicDriveController",
"ImplicitModelFollower_1_1",
"ImplicitModelFollower_2_1",
"ImplicitModelFollower_2_2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import _init__interpolation # noqa: F401

# autogenerated by 'robotpy-build create-imports wpimath.interpolation wpimath.interpolation._interpolation'
# autogenerated by 'semiwrap create-imports wpimath.interpolation wpimath.interpolation._interpolation'
from ._interpolation import (
TimeInterpolatableFloatBuffer,
TimeInterpolatablePose2dBuffer,
Expand Down
26 changes: 25 additions & 1 deletion subprojects/robotpy-wpimath/wpimath/kinematics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
from . import _init__kinematics

# autogenerated by 'robotpy-build create-imports wpimath.kinematics'
# autogenerated by 'semiwrap create-imports wpimath.kinematics wpimath.kinematics._kinematics'
from ._kinematics import (
ChassisSpeeds,
DifferentialDriveKinematics,
DifferentialDriveKinematicsBase,
DifferentialDriveOdometry,
DifferentialDriveOdometry3d,
DifferentialDriveOdometry3dBase,
DifferentialDriveOdometryBase,
DifferentialDriveWheelPositions,
DifferentialDriveWheelSpeeds,
MecanumDriveKinematics,
MecanumDriveKinematicsBase,
MecanumDriveOdometry,
MecanumDriveOdometry3d,
MecanumDriveOdometry3dBase,
MecanumDriveOdometryBase,
MecanumDriveWheelPositions,
MecanumDriveWheelSpeeds,
SwerveDrive2Kinematics,
SwerveDrive2KinematicsBase,
SwerveDrive2Odometry,
SwerveDrive2Odometry3d,
SwerveDrive2Odometry3dBase,
SwerveDrive2OdometryBase,
SwerveDrive3Kinematics,
SwerveDrive3KinematicsBase,
SwerveDrive3Odometry,
SwerveDrive3Odometry3d,
SwerveDrive3Odometry3dBase,
SwerveDrive3OdometryBase,
SwerveDrive4Kinematics,
SwerveDrive4KinematicsBase,
SwerveDrive4Odometry,
SwerveDrive4Odometry3d,
SwerveDrive4Odometry3dBase,
SwerveDrive4OdometryBase,
SwerveDrive6Kinematics,
SwerveDrive6KinematicsBase,
SwerveDrive6Odometry,
SwerveDrive6Odometry3d,
SwerveDrive6Odometry3dBase,
SwerveDrive6OdometryBase,
SwerveModulePosition,
SwerveModuleState,
Expand All @@ -40,30 +52,42 @@
"DifferentialDriveKinematics",
"DifferentialDriveKinematicsBase",
"DifferentialDriveOdometry",
"DifferentialDriveOdometry3d",
"DifferentialDriveOdometry3dBase",
"DifferentialDriveOdometryBase",
"DifferentialDriveWheelPositions",
"DifferentialDriveWheelSpeeds",
"MecanumDriveKinematics",
"MecanumDriveKinematicsBase",
"MecanumDriveOdometry",
"MecanumDriveOdometry3d",
"MecanumDriveOdometry3dBase",
"MecanumDriveOdometryBase",
"MecanumDriveWheelPositions",
"MecanumDriveWheelSpeeds",
"SwerveDrive2Kinematics",
"SwerveDrive2KinematicsBase",
"SwerveDrive2Odometry",
"SwerveDrive2Odometry3d",
"SwerveDrive2Odometry3dBase",
"SwerveDrive2OdometryBase",
"SwerveDrive3Kinematics",
"SwerveDrive3KinematicsBase",
"SwerveDrive3Odometry",
"SwerveDrive3Odometry3d",
"SwerveDrive3Odometry3dBase",
"SwerveDrive3OdometryBase",
"SwerveDrive4Kinematics",
"SwerveDrive4KinematicsBase",
"SwerveDrive4Odometry",
"SwerveDrive4Odometry3d",
"SwerveDrive4Odometry3dBase",
"SwerveDrive4OdometryBase",
"SwerveDrive6Kinematics",
"SwerveDrive6KinematicsBase",
"SwerveDrive6Odometry",
"SwerveDrive6Odometry3d",
"SwerveDrive6Odometry3dBase",
"SwerveDrive6OdometryBase",
"SwerveModulePosition",
"SwerveModuleState",
Expand Down
Loading