17 kKinematics_DifferentialDrive,
18 kKinematics_MecanumDrive,
19 kKinematics_SwerveDrive,
22 kOdometry_DifferentialDrive,
23 kOdometry_SwerveDrive,
24 kOdometry_MecanumDrive,
38 template <
typename S,
typename... Args>
43 template <
typename S,
typename... Args>
56 GetMathShared().ReportErrorV(
format, args);
59 template <
typename S,
typename... Args>
65 GetMathShared().ReportWarningV(
format, args);
68 template <
typename S,
typename... Args>
74 GetMathShared().ReportUsage(
id,
count);
78 return GetMathShared().GetTimestamp();
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
Definition: MathShared.h:29
virtual void ReportWarningV(fmt::string_view format, fmt::format_args args)=0
virtual void ReportUsage(MathUsageId id, int count)=0
void ReportError(const S &format, Args &&... args)
Definition: MathShared.h:39
virtual void ReportErrorV(fmt::string_view format, fmt::format_args args)=0
virtual units::second_t GetTimestamp()=0
void ReportWarning(const S &format, Args &&... args)
Definition: MathShared.h:44
virtual ~MathShared()=default
Definition: MathShared.h:49
static void SetMathShared(std::unique_ptr< MathShared > shared)
static void ReportErrorV(fmt::string_view format, fmt::format_args args)
Definition: MathShared.h:55
static MathShared & GetMathShared()
static void ReportError(const S &format, Args &&... args)
Definition: MathShared.h:60
static units::second_t GetTimestamp()
Definition: MathShared.h:77
static void ReportUsage(MathUsageId id, int count)
Definition: MathShared.h:73
static void ReportWarning(const S &format, Args &&... args)
Definition: MathShared.h:69
static void ReportWarningV(fmt::string_view format, fmt::format_args args)
Definition: MathShared.h:64
basic_string_view< char > string_view
Definition: core.h:520
constexpr auto count() -> size_t
Definition: core.h:1204
constexpr auto make_format_args(Args &&... args) -> format_arg_store< Context, remove_cvref_t< Args >... >
\rst Constructs a ~fmtformat_arg_store object that contains references to arguments and can be implic...
Definition: core.h:1923
basic_format_args< format_context > format_args
An alias to basic_format_args<format_context>.
Definition: core.h:2069
void ReportErrorV(int32_t status, const char *fileName, int lineNumber, const char *funcName, fmt::string_view format, fmt::format_args args)
Reports an error to the driver station (using HAL_SendError).
Definition: MathShared.h:14
MathUsageId
Definition: MathShared.h:16
@ kController_ProfiledPIDController
@ kController_PIDController2
@ kTrajectory_TrapezoidProfile
#define S(label, offset, message)
Definition: Errors.h:119
auto format(wformat_string< T... > fmt, T &&... args) -> std::wstring
Definition: xchar.h:87