Today's firmware update changes how the sensor works out which way is up, fixes a calibration bug and comes with a new licence. Here is each piece, including what we could not prove.
Why the orientation filter matters
To measure vertical bar speed, the sensor has to know at every moment where "up" is, so it can subtract gravity from what the accelerometer reads. An orientation filter does this by combining two sensors. The gyroscope is precise over short periods but drifts. The accelerometer doesn't drift, but it gets confused while the bar is accelerating.
Until now the firmware used the Madgwick filter. The new one is Fusion by x-io Technologies, an open-source library under the MIT licence, included in the repository unmodified. Fusion corrects in proportion to the error, ignores the accelerometer during hard accelerations and takes it back if it has ignored it for too long.
Tested on recordings before switching
We didn't switch and hope. We took recorded squat sets (six sets, 55 reps) and replayed them on a computer through the real tracking engine, once with each filter. First we checked that the replay reproduces what the sensor had recorded. It does, closely enough that any difference would come from the filter.
The result was a little dull: on squats the two filters gave the same numbers. The reps found were the same. The few larger differences came from the engine placing a rep's start or end a moment earlier or later, and a 0.1 % tweak to the accelerometer calibration, with no filter change at all, moved results just as much.
So Fusion is not better on squats, and we don't claim it is. Where it should make a difference is in impacts and fast rotations, such as a deadlift landing. We switched after testing it on the sensor itself, including an update from the app. Whether it is actually closer to the truth can only be shown against a reference, and that belongs to the validation, which has not been done yet.
A bug we found on the way
The feasibility work turned up a bug that had nothing to do with Fusion. When you pressed CALIBRATE, the starting orientation was set with the tilt mirrored. The filter corrected itself, but slowly: with the sensor tilted as in our recordings, it took about 17 seconds standing still. A set started right after calibrating could measure the vertical wrongly for that time. This update fixes it.
A known limit, stated plainly
Firmware updates from the app need the phone to be online.
The new licence: open core
- The tracking engine is under PolyForm Noncommercial 1.0.0: free for personal, study and public-benefit research use. Commercial use needs a licence from ODKI.
- The rest of the firmware and all the tools are under Apache 2.0.
- The hardware files stay under CC BY-NC-SA 4.0, and the Bluetooth protocol stays CC0, so anyone can write a compatible app.
- Copies received under the old GPL v3.0 with Commons Clause terms keep those terms.
The README ↗ explains which file is under which licence. We also published a bootloader guide ↗, needed for updates from the app, which also works on a closed sensor without a reset button.
Questions are welcome in the new GitHub Discussions ↗.