Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Topic

...

merlin/vhit/progress

QoS

1

Retain

true

Data

Advanced code syntax highlighter
version3
{"code":"{\n  \"state\": \"detected\",\n  \"plane\": \"lateral\",\n  \"timestamp\": 1709291469016135,\n  \"speed\": 154.22878606092254,\n  \"threshold\": 150\n}","theme":"default","language":"json","showLineNumbers":true}
Advanced code syntax highlighter
version3
{"code":"{\n  \"state\": \"completed\",\n  \"plane\": \"lateral\",\n  \"timestamp\": 1709291470876506,\n  \"speed\": 154.22878606092254,\n  \"threshold\": 150\n}","theme":"default","language":"json","showLineNumbers":true}

struct

Advanced code syntax highlighter
version4
{"code":"type VHitInfo struct {\n\tState     string  `json:\"state\"`\n\tPlane     string  `json:\"plane\"`\n\tTimestamp int64   `json:\"timestamp\"`\n\tSpeed     float64 `json:\"speed\"`\n\tThreshold float64 `json:\"threshold\"`\n}","theme":"default","language":"json","showLineNumbers":true}

A json formatted message is sent on this topic, when a head impulse test is detected and when it’s processing is completed

The completed-Message updates state and timestamp. The other fields are retained from the previous detected-Message.

State

Possible values:

  • idle
    Not yet used. Status will be set to idle,

  • detected
    Is set, whenever the head velocity in the current testaxis (lateral, LARP, RALP) is exceeding the specified threshold for head impulse detection.

  • completed
    Is set, when the pupil analysis is completed for the full video recorded

  • failed
    Is set 1 second after detected event, if no completed event occured.

Plane

Plane is set acc. to the currently selected examination plane:

  • lateral

  • larp

  • ralp

Timestamp

Timestamp in UnixMicros() at the time of creating the mqtt message.

Speed

Head velocity in the current test axis when recording the impulse was triggered.
Note: the actual start of the recording will be be before this trigger point. The system buffers both head-positions and video stream to allow presenting the head- and eye-velocity traces incl. the time before the head impulse was initiated.

Threshold

This is the specified threshold value that triggers a head impulse in the selected test plane.

Excerpt
namevhit/progress

Advanced code syntax highlighter
version3
{"code":"{\n  \"state\": \"detected\",\n  \"plane\": \"lateral\",\n  \"timestamp\": 1709291469016135,\n  \"speed\": 154.22878606092254,\n  \"threshold\": 150\n}","theme":"default","language":"json","showLineNumbers":true}