diff --git a/sim/Propagator.cpp b/sim/Propagator.cpp index c8344fb..b33a15d 100644 --- a/sim/Propagator.cpp +++ b/sim/Propagator.cpp @@ -67,7 +67,7 @@ Propagator::Propagator(std::shared_ptr r) }; - linearIntegrator.reset(new RK4Solver(linearODE)); + linearIntegrator.reset(new RK4Solver(linearODE)); linearIntegrator->setTimeStep(timeStep); // This is pure quaternion @@ -113,6 +113,15 @@ Propagator::Propagator(std::shared_ptr r) // })); // orientationIntegrator->setTimeStep(timeStep); + std::function(Quaternion&, Quaternion&)> orientationODE = + [this](Quaternion& qOri, Quaternion& qRate) -> std::pair + { + Quaternion dOri; + Quaternion dOriRate; + + Matrix4 + } + saveStates = true; } diff --git a/sim/Propagator.h b/sim/Propagator.h index d2ef7ca..ada9686 100644 --- a/sim/Propagator.h +++ b/sim/Propagator.h @@ -11,7 +11,7 @@ /// \endcond // qtrocket headers -#include "sim/DESolver.h" +#include "sim/RK4Solver.h" #include "utils/math/MathTypes.h" #include "sim/StateData.h" @@ -72,7 +72,7 @@ private: double getIroll() { return 1.0; } std::unique_ptr> linearIntegrator; - std::unique_ptr> orientationIntegrator; +// std::unique_ptr> orientationIntegrator; std::shared_ptr rocket;