mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -11,7 +11,8 @@ using namespace wpi::math;
|
||||
|
||||
namespace {
|
||||
|
||||
using ProtoType = wpi::util::Protobuf<wpi::math::DifferentialDriveWheelVoltages>;
|
||||
using ProtoType =
|
||||
wpi::util::Protobuf<wpi::math::DifferentialDriveWheelVoltages>;
|
||||
|
||||
const DifferentialDriveWheelVoltages kExpectedData =
|
||||
DifferentialDriveWheelVoltages{0.174_V, 0.191_V};
|
||||
|
||||
@@ -17,7 +17,8 @@ struct SimpleMotorFeedforwardProtoTestData {
|
||||
using Type = SimpleMotorFeedforward<T>;
|
||||
|
||||
inline static const Type kTestData = {
|
||||
wpi::units::volt_t{0.4}, wpi::units::volt_t{4.0} / (wpi::units::unit_t<T>{1} / 1_s),
|
||||
wpi::units::volt_t{0.4},
|
||||
wpi::units::volt_t{4.0} / (wpi::units::unit_t<T>{1} / 1_s),
|
||||
wpi::units::volt_t{0.7} / (wpi::units::unit_t<T>{1} / 1_s / 1_s), 25_ms};
|
||||
|
||||
static void CheckEq(const Type& testData, const Type& data) {
|
||||
|
||||
Reference in New Issue
Block a user