mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilibc] Transition C++ classes to units::second_t (#3396)
A lot of these are breaking changes. frc::Timer was replaced with the contents of frc2::Timer. The others were in-place argument changes or removing deprecated non-unit overloads.
This commit is contained in:
@@ -128,8 +128,8 @@ class DifferentialDrivePoseEstimator {
|
||||
* calling UpdateWithTime(), then you must use a
|
||||
* timestamp with an epoch since FPGA startup (i.e. the
|
||||
* epoch of this timestamp is the same epoch as
|
||||
* frc2::Timer::GetFPGATimestamp(). This means that
|
||||
* you should use frc2::Timer::GetFPGATimestamp() as
|
||||
* frc::Timer::GetFPGATimestamp(). This means that
|
||||
* you should use frc::Timer::GetFPGATimestamp() as
|
||||
* your time source in this case.
|
||||
*/
|
||||
void AddVisionMeasurement(const Pose2d& visionRobotPose,
|
||||
@@ -155,9 +155,9 @@ class DifferentialDrivePoseEstimator {
|
||||
* timestamp with an epoch since FPGA startup
|
||||
* (i.e. the epoch of this timestamp is the
|
||||
* same epoch as
|
||||
* frc2::Timer::GetFPGATimestamp(). This means
|
||||
* frc::Timer::GetFPGATimestamp(). This means
|
||||
* that you should use
|
||||
* frc2::Timer::GetFPGATimestamp() as your
|
||||
* frc::Timer::GetFPGATimestamp() as your
|
||||
* time source in this case.
|
||||
* @param visionMeasurementStdDevs Standard deviations of the vision
|
||||
* measurements. Increase these numbers to
|
||||
|
||||
@@ -155,9 +155,9 @@ class MecanumDrivePoseEstimator {
|
||||
* timestamp with an epoch since FPGA startup
|
||||
* (i.e. the epoch of this timestamp is the
|
||||
* same epoch as
|
||||
* frc2::Timer::GetFPGATimestamp(). This means
|
||||
* frc::Timer::GetFPGATimestamp(). This means
|
||||
* that you should use
|
||||
* frc2::Timer::GetFPGATimestamp() as your
|
||||
* frc::Timer::GetFPGATimestamp() as your
|
||||
* time source in this case.
|
||||
* @param visionMeasurementStdDevs Standard deviations of the vision
|
||||
* measurements. Increase these numbers to
|
||||
|
||||
@@ -209,9 +209,9 @@ class SwerveDrivePoseEstimator {
|
||||
* timestamp with an epoch since FPGA startup
|
||||
* (i.e. the epoch of this timestamp is the
|
||||
* same epoch as
|
||||
* frc2::Timer::GetFPGATimestamp(). This means
|
||||
* frc::Timer::GetFPGATimestamp(). This means
|
||||
* that you should use
|
||||
* frc2::Timer::GetFPGATimestamp() as your
|
||||
* frc::Timer::GetFPGATimestamp() as your
|
||||
* time source in this case.
|
||||
* @param visionMeasurementStdDevs Standard deviations of the vision
|
||||
* measurements. Increase these numbers to
|
||||
|
||||
Reference in New Issue
Block a user