Skip to content

CalBGForPH parsing wrong #26

@sulkaharo

Description

@sulkaharo

Using Medtronic 554 Veo, create a Bolus Wizard treatment where you enter 12 mmol as the blood glucose value. The following is output by decocare when parsing the logs. Note how the CalBGForPH value has taken the mmol value and multiplied it by 10 and the units definition is missing. The end-result is that the event is considered to represent 120 mgdl, which is around half of 12 mmol. @bewest any pointers where to look?

{
    "_type": "CalBGForPH", 
    "_description": "CalBGForPH 2017-04-04T04:05:08 head[2], body[0] op[0x0a]", 
    "timestamp": "2017-04-04T04:05:08", 
    "_body": "", 
    "_head": "0a78", 
    "amount": 120, 
    "_date": "4805440411"
  }
  {
    "_type": "BolusWizard", 
    "bg": 12.0, 
    "bg_target_high": 9.0, 
    "_description": "BolusWizard 2017-04-04T04:05:25 head[2], body[15] op[0x5b]", 
    "timestamp": "2017-04-04T04:05:25", 
    "_body": "0090008c483410000000000000105a", 
    "_head": "5b78", 
    "unabsorbed_insulin_total": 0.0, 
    "correction_estimate": 0.4, 
    "_date": "5905040411", 
    "bolus_estimate": 0.4, 
    "bg_target_low": 5.2, 
    "carb_ratio": 14.0, 
    "food_estimate": 0.0, 
    "carb_input": 0, 
    "sensitivity": 7.2
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions