mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -20,14 +20,14 @@ class DefaultMathShared : public MathShared {
|
||||
void ReportWarningV(fmt::string_view format, fmt::format_args args) override {
|
||||
}
|
||||
void ReportUsage(std::string_view resource, std::string_view data) override {}
|
||||
units::second_t GetTimestamp() override {
|
||||
return units::second_t{wpi::Now() * 1.0e-6};
|
||||
wpi::units::second_t GetTimestamp() override {
|
||||
return wpi::units::second_t{wpi::util::Now() * 1.0e-6};
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
static std::unique_ptr<MathShared> mathShared;
|
||||
static wpi::mutex setLock;
|
||||
static wpi::util::mutex setLock;
|
||||
|
||||
MathShared& MathSharedStore::GetMathShared() {
|
||||
std::scoped_lock lock(setLock);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace frc {
|
||||
namespace wpi::math {
|
||||
|
||||
template bool IsStabilizable<1, 1>(const Matrixd<1, 1>& A,
|
||||
const Matrixd<1, 1>& B);
|
||||
@@ -68,4 +68,4 @@ Eigen::MatrixXd MakeCovMatrix(const std::span<const double> stdDevs) {
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace frc
|
||||
} // namespace wpi::math
|
||||
|
||||
Reference in New Issue
Block a user