[wpimath] Explicitly export wpimath symbols

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Thad House
2021-08-20 09:02:01 -07:00
committed by Peter Johnson
parent 161e211734
commit 382deef750
54 changed files with 207 additions and 101 deletions

View File

@@ -4,6 +4,7 @@
#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/numbers>
#include "units/angle.h"
@@ -17,6 +18,7 @@ namespace frc {
* @param value Value to clip.
* @param deadband Range around zero.
*/
WPILIB_DLLEXPORT
double ApplyDeadband(double value, double deadband);
/**
@@ -46,6 +48,7 @@ constexpr T InputModulus(T input, T minimumInput, T maximumInput) {
*
* @param angle Angle to wrap.
*/
WPILIB_DLLEXPORT
constexpr units::radian_t AngleModulus(units::radian_t angle) {
return InputModulus<units::radian_t>(angle,
units::radian_t{-wpi::numbers::pi},