Skip to content

Commit

Permalink
plugins/cloud/ripples/RipplesUpdater: Looking to plan control state i…
Browse files Browse the repository at this point in the history
…f ready send plan as idle.
  • Loading branch information
paulosousadias committed Dec 12, 2024
1 parent 01b601d commit 9cda161
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,14 @@ private RipplesPlan pcsToRipplesPlan(PlanControlState pcs) {
return new RipplesPlan();
}
if (!getConsole().getMission().getIndividualPlansList().containsKey(pcs.getPlanId())) {
return new RipplesPlan();
RipplesPlan plan = new RipplesPlan();
if (pcs.getState() != PlanControlState.STATE.READY) {
plan.setId(pcs.getPlanId());
}
return plan;
}
PlanType planType = getConsole().getMission().getIndividualPlansList().get(pcs.getPlanId());
if (planType == null) {
if (planType == null || pcs.getState() == PlanControlState.STATE.READY) {
return new RipplesPlan();
}
ArrayList<double[]> locs = new ArrayList<double[]>();
Expand Down

0 comments on commit 9cda161

Please sign in to comment.