Master Thesis Code
by Simon Moser
Loading...
Searching...
No Matches
jumpCheckData.m File Reference

checks data structure More...

Go to the source code of this file.

Functions

function jumpCheckData (in data)
 

Detailed Description

checks data structure

this function checks the data structure of the provided data structure and returns a boolean indicating if the data structure is valid. Also, if only small, obvious errors are found, the function tries to correct them.

Parameters
data- data structure to check
Return values
valid- boolean indicating if the data structure is valid
corrected- boolean indicating if the data structure was corrected
data- corrected data structure

the data structure must be a struct containing the following fields:

  • tt: timetable containing the sensor data
    • t: datetime vector
    • acc: acceleration data (m/s^2), Nx3 matrix
    • gyr: angular velocity data (°/s), Nx3 matrix
    • hig: high G acceleration data (m/s^2), Nx3 matrix
    • mag: magnetometer data (uT), Nx3 matrix
    • prs: pressure data (mbar), Nx1 vector
    • tmp: temperature data (°C), Nx1 vector
  • t_start: start time of the data
  • ID: sensor ID (string)
  • UID: sensor UID (string)
  • name: sensor name (string)
  • sw_version: sensor software version (string)
  • hw_version: sensor hardware version (string)
  • acc_range: accelerometer range (in g) (double)
  • gyro_range: gyroscope range (in °/s) (double)
  • mpu_cal: mpu calibration (double)
  • act_thrs: activity threshold (double)
  • inact_dur: inactivity duration (double)
  • mpu_rate: mpu rate (double)
  • adxl_rate: adxl rate (double)
  • pres_rate: pressure rate (double)
  • magn_en: magnetometer enable (254: off, 255: on) (double)
  • sync: sync mode (0: idle, 1: slave, 2: master) (double)
  • ble_address: ble address (string)

Definition in file jumpCheckData.m.

Function Documentation

◆ jumpCheckData()

function jumpCheckData ( in data)