tanjera / infirmary-integrated

Medical device simulator for training healthcare professionals.
http://www.infirmary-integrated.com/
Other
40 stars 5 forks source link

Tracing Realism: SpO2/ABP on Ectopic Beats #190

Closed tanjera closed 1 year ago

tanjera commented 1 year ago

Some waveforms including SpO2 drop to 0 when beats "stack"- dropping to 0 is unrealistic and is drawing artifact.

image

Solution: Only start the Replace() function after the new spliced in drawing supercedes the old drawing on the Y axis.

Problem exists with:

tanjera commented 1 year ago

Implemented ReplaceDirection()

image

Fixes the "drops" to y=0, but causes lagging strip population at Strip start, ~ 10 seconds. Need to fix then test on all rhythms before replacing the Replace() function w/ ReplaceDirection()

image
tanjera commented 1 year ago

Fixed the lag in drawing initial beats mentioned in last comment... was running entire Replace() routine on applicable beats that didn't need splice compared to Points... Replace() routine increased X offset an additional time (beats delayed additional ~10 seconds). Needed to skip the 2nd delay and get straight to removing/inserting on the List.