We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e80ad5c commit ce3a7d9Copy full SHA for ce3a7d9
examples/har_trees/basic.py
@@ -124,6 +124,7 @@ def calculate_features_xyz(xyz : tuple[array.array]) -> array.array:
124
#feature_data[Feature.pitch] = pitch
125
#feature_data[Feature.roll] = roll
126
127
+ # FIXME: use the normalized (unit-scaled) gravity vector instead of quaternion
128
orientation_q = tilt_quaternion_from_accel(gravity_x, gravity_y, gravity_z)
129
feature_data[Feature.orient_w] = orientation_q[0]
130
feature_data[Feature.orient_x] = orientation_q[1]
0 commit comments