Closed DobbyWanKenoby closed 2 years ago
I had commented on the commit earlier. In NS and any other system a new TT always cancels the previous TT. I don't think the the first TT(N,M) should be allowed to finish it's original time until M, if that other TT(>N,<M) finishes before M. Instead there should be no TT after second TT(>N,<M) finishes.
@mountrcg original OpenAPS logic is the same as in the PR https://github.com/openaps/oref0/blob/master/lib/profile/targets.js
@mountrcg original OpenAPS logic is the same as in the PR https://github.com/openaps/oref0/blob/master/lib/profile/targets.js
Hi @ivalkou , I didnโt quite understand the logic in the oref0 code you linked to, so I donโt know if you already agree with the below or not:
The way FAX works now is problematic because what you see in Nightscout (previous long lasting TT is terminated when short TT expire) is different from the actual situation in FAX (previous TT resume after a TT with shorter duration expires).
Based on NS experience from other APS (Loop, and probably also AAPS?) I would expect the same result in FAX as in NS. At any rate, the situation in FAX must be correctly displayed in NS to avoid misunderstandings.
@bjornoleh I think you are right. 012af037ecac8418966b0201cf353198787fe142 @DobbyWanKenoby PTAL, if it's ok close the PR
@bjornoleh I think you are right.
012af037ecac8418966b0201cf353198787fe142
@DobbyWanKenoby PTAL, if it's ok close the PR
I think its ok
The project has bug with display temporary targets (TT), which overlapping each other. If one TT start on time N, finish on time M, and other TT place in range
(N,M)
, where it start > N, and finish < M, then second part of first TT doesn't display.Fix improve bug. You can use this temptargets.json for tests (pls change dates)