10#include "wpi/units/acceleration.hpp"
11#include "wpi/units/angular_acceleration.hpp"
12#include "wpi/units/angular_velocity.hpp"
13#include "wpi/units/length.hpp"
14#include "wpi/units/time.hpp"
15#include "wpi/units/velocity.hpp"
16#include "wpi/units/voltage.hpp"
42 decltype(1_V / 1_mps) kVLinear,
decltype(1_V / 1_mps_sq) kALinear,
43 decltype(1_V / 1_rad_per_s) kVAngular,
44 decltype(1_V / 1_rad_per_s_sq) kAAngular, wpi::units::meter_t trackwidth)
49 kVAngular * 2.0 / trackwidth * 1_rad,
50 kAAngular * 2.0 / trackwidth * 1_rad} {}
64 decltype(1_V / 1_mps_sq) kALinear,
65 decltype(1_V / 1_mps) kVAngular,
66 decltype(1_V / 1_mps_sq) kAAngular)
68 kVLinear, kALinear, kVAngular, kAAngular)},
89 wpi::units::meters_per_second_t currentLeftVelocity,
90 wpi::units::meters_per_second_t nextLeftVelocity,
91 wpi::units::meters_per_second_t currentRightVelocity,
92 wpi::units::meters_per_second_t nextRightVelocity,
93 wpi::units::second_t dt);
#define WPILIB_DLLEXPORT
Definition SymbolExports.hpp:36
constexpr DifferentialDriveFeedforward(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 new DifferentialDriveFeedforward with the specified parameters.
Definition DifferentialDriveFeedforward.hpp:63
constexpr DifferentialDriveFeedforward(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 new DifferentialDriveFeedforward with the specified parameters.
Definition DifferentialDriveFeedforward.hpp:41
decltype(1_V/1_mps) m_kVAngular
Definition DifferentialDriveFeedforward.hpp:97
decltype(1_V/1_mps_sq) m_kALinear
Definition DifferentialDriveFeedforward.hpp:96
DifferentialDriveWheelVoltages Calculate(wpi::units::meters_per_second_t currentLeftVelocity, wpi::units::meters_per_second_t nextLeftVelocity, wpi::units::meters_per_second_t currentRightVelocity, wpi::units::meters_per_second_t nextRightVelocity, wpi::units::second_t dt)
Calculates the differential drive feedforward inputs given velocity setpoints.
decltype(1_V/1_mps_sq) m_kAAngular
Definition DifferentialDriveFeedforward.hpp:98
decltype(1_V/1_mps) m_kVLinear
Definition DifferentialDriveFeedforward.hpp:95
A plant defined using state-space notation.
Definition LinearSystem.hpp:35
Linear system factories.
Definition Models.hpp:26
Definition LinearSystem.hpp:20
Definition CvSource.hpp:15
Motor voltages for a differential drive.
Definition DifferentialDriveWheelVoltages.hpp:14