mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
diff --git b/wpimath/src/main/native/include/drake/math/discrete_algebraic_riccati_equation.h a/wpimath/src/main/native/include/drake/math/discrete_algebraic_riccati_equation.h
|
||
index cb0a4ee13..5d7a316f3 100644
|
||
--- b/wpimath/src/main/native/include/drake/math/discrete_algebraic_riccati_equation.h
|
||
+++ a/wpimath/src/main/native/include/drake/math/discrete_algebraic_riccati_equation.h
|
||
@@ -4,6 +4,7 @@
|
||
#include <cstdlib>
|
||
|
||
#include <Eigen/Core>
|
||
+#include <wpi/SymbolExports.h>
|
||
|
||
namespace drake {
|
||
namespace math {
|
||
@@ -20,6 +21,7 @@ namespace math {
|
||
/// "On the Numerical Solution of the Discrete-Time Algebraic Riccati Equation"
|
||
/// by Thrasyvoulos Pappas, Alan J. Laub, and Nils R. Sandell
|
||
///
|
||
+WPILIB_DLLEXPORT
|
||
Eigen::MatrixXd DiscreteAlgebraicRiccatiEquation(
|
||
const Eigen::Ref<const Eigen::MatrixXd>& A,
|
||
const Eigen::Ref<const Eigen::MatrixXd>& B,
|
||
@@ -69,6 +71,7 @@ Eigen::MatrixXd DiscreteAlgebraicRiccatiEquation(
|
||
/// @throws std::runtime_error if Q − NR⁻¹Nᵀ is not positive semi-definite.
|
||
/// @throws std::runtime_error if R is not positive definite.
|
||
///
|
||
+WPILIB_DLLEXPORT
|
||
Eigen::MatrixXd DiscreteAlgebraicRiccatiEquation(
|
||
const Eigen::Ref<const Eigen::MatrixXd>& A,
|
||
const Eigen::Ref<const Eigen::MatrixXd>& B,
|