|
| static constexpr LinearSystem< 1, 1, 1 > | FlywheelFromPhysicalConstants (DCMotor motor, wpi::units::kilogram_square_meter_t J, double gearing) |
| | Creates a flywheel state-space model from physical constants.
|
| static constexpr LinearSystem< 1, 1, 1 > | FlywheelFromSysId (decltype(1_V/1_rad_per_s) kV, decltype(1_V/1_rad_per_s_sq) kA) |
| | Creates a flywheel state-space model from SysId constants kᵥ (V/(rad/s)) and kₐ (V/(rad/s²)) from the feedforward model u = kᵥv + kₐa.
|
| static constexpr LinearSystem< 2, 1, 2 > | ElevatorFromPhysicalConstants (DCMotor motor, wpi::units::kilogram_t mass, wpi::units::meter_t radius, double gearing) |
| | Creates an elevator state-space model from physical constants.
|
| static constexpr LinearSystem< 2, 1, 2 > | ElevatorFromSysId (decltype(1_V/1_mps) kV, decltype(1_V/1_mps_sq) kA) |
| | Creates an elevator state-space model from SysId constants kᵥ (V/(m/s)) and kₐ (V/(m/s²)) from the feedforward model u = kᵥv + kₐa.
|
| static constexpr LinearSystem< 2, 1, 2 > | SingleJointedArmFromPhysicalConstants (DCMotor motor, wpi::units::kilogram_square_meter_t J, double gearing) |
| | Create a single-jointed arm state-space model from physical constants.
|
| static constexpr LinearSystem< 2, 1, 2 > | SingleJointedArmFromSysId (decltype(1_V/1_rad_per_s) kV, decltype(1_V/1_rad_per_s_sq) kA) |
| | Creates a single-jointed arm state-space model from SysId constants kᵥ (V/(rad/s)) and kₐ (V/(rad/s²)) from the feedforward model u = kᵥv + kₐa.
|
| static constexpr LinearSystem< 2, 2, 2 > | DifferentialDriveFromPhysicalConstants (const DCMotor &motor, wpi::units::kilogram_t mass, wpi::units::meter_t r, wpi::units::meter_t rb, wpi::units::kilogram_square_meter_t J, double gearing) |
| | Creates a differential drive state-space model from physical constants.
|
| static constexpr LinearSystem< 2, 2, 2 > | DifferentialDriveFromSysId (decltype(1_V/1_mps) kVLinear, decltype(1_V/1_mps_sq) kALinear, decltype(1_V/1_mps) kVAngular, decltype(1_V/1_mps_sq) kAAngular) |
| | Creates a differential drive state-space model from SysId constants kᵥ and kₐ in both linear {(V/(m/s), (V/(m/s²))} and angular {(V/(rad/s), (V/(rad/s²))} cases.
|
| static constexpr LinearSystem< 2, 2, 2 > | DifferentialDriveFromSysId (decltype(1_V/1_mps) kVLinear, decltype(1_V/1_mps_sq) kALinear, decltype(1_V/1_rad_per_s) kVAngular, decltype(1_V/1_rad_per_s_sq) kAAngular, wpi::units::meter_t trackwidth) |
| | Creates a differential drive state-space model from SysId constants kᵥ and kₐ in both linear {(V/(m/s), (V/(m/s²))} and angular {(V/(rad/s), (V/(rad/s²))} cases.
|
| constexpr LinearSystem< 2, 2, 2 > wpi::math::Models::DifferentialDriveFromSysId |
( |
decltype(1_V/1_mps) | kVLinear, |
|
|
decltype(1_V/1_mps_sq) | kALinear, |
|
|
decltype(1_V/1_mps) | kVAngular, |
|
|
decltype(1_V/1_mps_sq) | kAAngular ) |
|
inlinestaticconstexpr |
Creates a differential drive state-space model from SysId constants kᵥ and kₐ in both linear {(V/(m/s), (V/(m/s²))} and angular {(V/(rad/s), (V/(rad/s²))} cases.
The states are [left velocity, right velocity], the inputs are [left voltage, right voltage], and the outputs are [left velocity, right velocity].
- Parameters
-
| kVLinear | The linear velocity gain in volts per (meters per second). |
| kALinear | The linear acceleration gain in volts per (meters per second squared). |
| kVAngular | The angular velocity gain in volts per (meters per second). |
| kAAngular | The angular acceleration gain in volts per (meters per second squared). |
- Throws:
- domain_error if kVLinear <= 0, kALinear <= 0, kVAngular <= 0, or kAAngular <= 0.
- See also
- https://github.com/wpilibsuite/allwpilib/tree/main/sysid
| constexpr LinearSystem< 2, 2, 2 > wpi::math::Models::DifferentialDriveFromSysId |
( |
decltype(1_V/1_mps) | kVLinear, |
|
|
decltype(1_V/1_mps_sq) | kALinear, |
|
|
decltype(1_V/1_rad_per_s) | kVAngular, |
|
|
decltype(1_V/1_rad_per_s_sq) | kAAngular, |
|
|
wpi::units::meter_t | trackwidth ) |
|
inlinestaticconstexpr |
Creates a differential drive state-space model from SysId constants kᵥ and kₐ in both linear {(V/(m/s), (V/(m/s²))} and angular {(V/(rad/s), (V/(rad/s²))} cases.
The states are [left velocity, right velocity], the inputs are [left voltage, right voltage], and the outputs are [left velocity, right velocity].
- Parameters
-
| kVLinear | The linear velocity gain in volts per (meters per second). |
| kALinear | The linear acceleration gain in volts per (meters per second squared). |
| kVAngular | The angular velocity gain in volts per (radians per second). |
| kAAngular | The angular acceleration gain in volts per (radians per second squared). |
| trackwidth | The distance between the differential drive's left and right wheels, in meters. |
- Throws:
- domain_error if kVLinear <= 0, kALinear <= 0, kVAngular <= 0, kAAngular <= 0, or trackwidth <= 0.
- See also
- https://github.com/wpilibsuite/allwpilib/tree/main/sysid