-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time delta is incorrectly large when exiting cardiac arrest #6530
Comments
I think we should go with approach 1. |
For reference:
|
Refreshed my memory on this one. The issue is that in statemachine, the cardiac arrest state doesn't have an The temporary fix currently implemented (see above) isn't even a valid fix because it should be In terms of the solution to this, it depends whether handleUnitVitals updates anything independent of heart rate (although CPR also causes heart rate so that might be untrue). If it doesn't, then the "temporary fix" is enough because the loop doesn't need to be ran since we know nothing is changing while HR=0. If it does, the fix would be to add an |
It bothered me that this issue was named "fix", but is not a pull request. |
Fixed by #7060 |
Issue revealed and discussed as part of #6523
Basically because vitals loop isn't ran as part of the cardiac arrest state, when you recover the time delta becomes large because the previously stored time was back before you entered cardiac arrest. This leads to some values trying to incorrectly change massively.
I see two potential solutions:
GVAR(lastTimeUpdated)
value on the unit when exiting cardiac arrestThe text was updated successfully, but these errors were encountered: