mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -1,21 +1,21 @@
|
||||
classes:
|
||||
frc::sim::ElevatorSim:
|
||||
wpi::sim::ElevatorSim:
|
||||
typealias:
|
||||
- frc::DCMotor
|
||||
- template <int S, int I, int O> using LinearSystem = frc::LinearSystem<S, I, O>
|
||||
- template <int I> using Vectord = frc::Vectord<I>
|
||||
- wpi::math::DCMotor
|
||||
- template <int S, int I, int O> using wpi::math::LinearSystem = wpi::math::LinearSystem<S, I, O>
|
||||
- template <int I> using wpi::math::Vectord = wpi::math::Vectord<I>
|
||||
methods:
|
||||
ElevatorSim:
|
||||
overloads:
|
||||
? const LinearSystem<2, 1, 2>&, const DCMotor&, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
|
||||
? const wpi::math::LinearSystem<2, 1, 2>&, const wpi::math::DCMotor&, wpi::units::meter_t, wpi::units::meter_t, bool, wpi::units::meter_t, const std::array<double, 2>&
|
||||
: param_override:
|
||||
measurementStdDevs:
|
||||
default: std::array<double, 2>{0.0, 0.0}
|
||||
? const DCMotor&, double, units::kilogram_t, units::meter_t, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
|
||||
? const wpi::math::DCMotor&, double, wpi::units::kilogram_t, wpi::units::meter_t, wpi::units::meter_t, wpi::units::meter_t, bool, wpi::units::meter_t, const std::array<double, 2>&
|
||||
: param_override:
|
||||
measurementStdDevs:
|
||||
default: std::array<double, 2>{0.0}
|
||||
? decltype(1_V/Velocity_t<Distance> (1)), decltype(1_V/Acceleration_t<Distance> (1)), const DCMotor&, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
|
||||
? decltype(1_V/Velocity_t<Distance> (1)), decltype(1_V/Acceleration_t<Distance> (1)), const wpi::math::DCMotor&, wpi::units::meter_t, wpi::units::meter_t, bool, wpi::units::meter_t, const std::array<double, 2>&
|
||||
: ignore: true
|
||||
SetState:
|
||||
WouldHitLowerLimit:
|
||||
@@ -30,13 +30,13 @@ classes:
|
||||
|
||||
inline_code: |-
|
||||
cls_ElevatorSim
|
||||
.def("getPositionFeet", [](ElevatorSim * self) -> units::foot_t {
|
||||
.def("getPositionFeet", [](ElevatorSim * self) -> wpi::units::foot_t {
|
||||
return self->GetPosition();
|
||||
})
|
||||
.def("getPositionInches", [](ElevatorSim * self) -> units::inch_t {
|
||||
.def("getPositionInches", [](ElevatorSim * self) -> wpi::units::inch_t {
|
||||
return self->GetPosition();
|
||||
})
|
||||
.def("getVelocityFps", [](ElevatorSim * self) -> units::feet_per_second_t {
|
||||
.def("getVelocityFps", [](ElevatorSim * self) -> wpi::units::feet_per_second_t {
|
||||
return self->GetVelocity();
|
||||
})
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user