Skip to content

User Jerk Update

Craig McDonald requested to merge bugfix/user-jerk-time-delay into devel

Description

Made some changes to calculation of UserJerk: replaced tool acceleration with tool jerk, as it was originally, and added a time delay to the tool jerk magnitude before multiplying it with user force magnitude. The time delay is appropriate because there is an inherent time delay in the calculation of the user force through the disturbance observer, and we are doing the same thing when calculating UserWork as the product of distance and user force. The change from using acceleration to jerk requires adjusting the default sensitivity thresholds, so I did my best to come up with new ones.

Made a correction to the calculation of the delay being applied to position in the above-mentioned UserWork calculation, because I had not considered the fact that it was being downsampled. Also corrected and added some comments in the MovementAnalysis class.

What to focus on

  • Test the new UserJerk calculation and event detection using MovementAnalysisTest
  • Using burt/games/burt-game-common!238 with a Burt activity test that the new UserJerk event detection is working appropriately on all thresholds.
Edited by Craig McDonald

Merge request reports