Skip to content
Snippets Groups Projects
Commit 5b26c071 authored by Andrei Herdt's avatar Andrei Herdt
Browse files

Move reset to the beginning of online routine

parent 2170e3ab
No related branches found
No related tags found
No related merge requests found
......@@ -348,6 +348,8 @@ ZMPVelocityReferencedQP::OnLine(double Time,
// UPDATE INTERNAL DATA:
// ---------------------
Problem_.reset();
Solution_.reset();
VRQPGenerator_->CurrentTime( Time );
SupportFSM_->update_vel_reference(VelRef_, IntermedData_->SupportState());
IntermedData_->Reference( VelRef_ );
......@@ -426,12 +428,6 @@ ZMPVelocityReferencedQP::OnLine(double Time,
FinalLeftFootTraj_deq, FinalRightFootTraj_deq );
// RESET:
// ------
Problem_.reset();
Solution_.reset();
// Specify that we are in the ending phase.
if (EndingPhase_ == false)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment