Skip to content

Commit ce3a7d9

Browse files
committed
har_trees: Note on orientation representation
1 parent e80ad5c commit ce3a7d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/har_trees/basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def calculate_features_xyz(xyz : tuple[array.array]) -> array.array:
124124
#feature_data[Feature.pitch] = pitch
125125
#feature_data[Feature.roll] = roll
126126

127+
# FIXME: use the normalized (unit-scaled) gravity vector instead of quaternion
127128
orientation_q = tilt_quaternion_from_accel(gravity_x, gravity_y, gravity_z)
128129
feature_data[Feature.orient_w] = orientation_q[0]
129130
feature_data[Feature.orient_x] = orientation_q[1]

0 commit comments

Comments
 (0)