Skip to content

Local Files Haptic Test Results

Az edited this page Jul 1, 2024 · 4 revisions

☝️Haptic Test Results

File naming and location

The naming of the test result files follows this pattern:

HapticTestResults\[upgradeID]\[Test_Type]_[WaveType]\[year]_[month]_[day]_[hours]_[seconds]([optional id]).JSON

Each file represents a single question (see Haptic Analytics.

⚠️The file structure must be respected for ZINC to recognize the files properly.

File structure example

{
   "testType":0,
   "waveType":0,
   "timestamp":"2024_07_01_12_40",
   "product":"Titan",
   "upgradeId":"c4e...52026",
   "amplitude":0.0,
   "frequency":250.0,
   "gap":0.0,
   "duration":1.0,
   "response":0
}
  • testType: Type of test for this question.
  • waveType: Type of wave used for this question.
  • timestamp: Time when question answer was saved.
  • product: The product name of the biomagnet being tested.
  • upgradeId: Unique id of the upgrade being tested.
  • amplitude: Amplitude value tested, for test types where applicable.
  • frequecy: Frequency value tested, for test types where applicable.
  • gap: Gap value tested, for test types where applicable.
  • Duration: Duration value tested, for test types where applicable.
  • response: User response.

Possible responses

"yes","no","a","b","same"

Response sets

YN: yes,no
AB: a,b
ASB: a,same,b

Test types

enum HapticTestType { 
   Amplitude_Detection, //YN
   Amplitude_Discrimination, //ASB
   Frequency_Discrimination, //tbd
   Temporal_Discrimination //tbd
}

Wave types

enum TestWaveType { 
   Sine, 
   Square, 
   Saw 
};