[wpimath] Add extern templates for common cases

This helps reduce compile times and memory usage.
This commit is contained in:
Peter Johnson
2022-04-29 16:56:03 -07:00
parent 7200c4951d
commit e3d62c22d3
8 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/kinematics/SwerveDriveOdometry.h"
namespace frc {
template class EXPORT_TEMPLATE_DEFINE(WPILIB_DLLEXPORT) SwerveDriveOdometry<4>;
} // namespace frc