mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpimath] Replace frc/EigenCore.h typedefs with Eigen's where possible (#5597)
This commit is contained in:
@@ -80,7 +80,7 @@ class DifferentialDrivetrainSim {
|
||||
* @param u The input vector.
|
||||
* @return The normalized input.
|
||||
*/
|
||||
Vectord<2> ClampInput(const Vectord<2>& u);
|
||||
Eigen::Vector2d ClampInput(const Eigen::Vector2d& u);
|
||||
|
||||
/**
|
||||
* Sets the applied voltage to the drivetrain. Note that positive voltage must
|
||||
@@ -187,7 +187,7 @@ class DifferentialDrivetrainSim {
|
||||
*/
|
||||
void SetPose(const frc::Pose2d& pose);
|
||||
|
||||
Vectord<7> Dynamics(const Vectord<7>& x, const Vectord<2>& u);
|
||||
Vectord<7> Dynamics(const Vectord<7>& x, const Eigen::Vector2d& u);
|
||||
|
||||
class State {
|
||||
public:
|
||||
@@ -325,7 +325,7 @@ class DifferentialDrivetrainSim {
|
||||
double m_currentGearing;
|
||||
|
||||
Vectord<7> m_x;
|
||||
Vectord<2> m_u;
|
||||
Eigen::Vector2d m_u;
|
||||
Vectord<7> m_y;
|
||||
std::array<double, 7> m_measurementStdDevs;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user