# 102 - Relative Trunk Flex Feedback

This app will measure the relative trunk flex angle between two sensors on the l1 spine and the s1 spine. The angle is then compared to a threshold and feedback is turned on if the angle is greater than or less than the threshold.

### Nodes Required: 3 
- Sensing (2): 
  - s1_sensor
  - l1_sensor
- Feedback (1): 
  - feedback
  

## Algorithm & Calibration
### Algorithm Information
- None noted.
### Calibration Process:
- None noted.

## Description of Data in Downloaded File
- time (sec): time since trial start
- trunk_flex_angle (deg): angle between the two sensors
- feedback_threshold (deg): threshold for feedback
- feedback_state (int): 1 if feedback is on, 0 if feedback is off
- feedback_enabled (int): 1 if feedback is enabled, 0 if feedback is not enabled
- index of raw sensor data
- AccelX/Y/Z (m/s^2): raw acceleration data
- GyroX/Y/Z (deg/s): raw gyroscope data
- MagX/Y/Z (μT): raw magnetometer data
- Quat1/2/3/4: quaternion data
- Sampletime: timestamp of the sensor
- Package: package number of the sensor
