fix: RunningQuality must add ssf, not add beat

This commit is contained in:
2026-03-12 21:28:50 +01:00
parent ee77180994
commit bfb3c99184
4 changed files with 20 additions and 6 deletions

View File

@@ -10,6 +10,13 @@ void npy_save(std::string path, std::vector<double>& x) {
d.shape = {(unsigned long) x.size()};
npy::write_npy(path, d);
}
void npy_save(std::string path, std::vector<bool>& x) {
npy::npy_data_ptr<int> d;
std::vector<int> xx(x.begin(), x.end());
d.data_ptr = xx.data();
d.shape = {(unsigned long) x.size()};
npy::write_npy(path, d);
}
std::vector<double> fetch_y_axis(npy::npy_data<double>& acc) {
// TODO: later on, we should use a vector projection towards gravity