common/mag_cal.c: Format with clang-format
BRANCH=none
TEST=none
@@ -55,30 +55,21 @@ static int moc_eigen_test(struct mag_cal_t *moc)
int eigen_pass;
/* covariance matrix */
- S[0][0] = covariance_element(moc->kasa_fit.acc_xx,
- moc->kasa_fit.acc_x,
- moc->kasa_fit.acc_x,
- inv);
+ S[0][0] = covariance_element(moc->kasa_fit.acc_xx, moc->kasa_fit.acc_x,
+ moc->kasa_fit.acc_x, inv);
S[0][1] = S[1][0] = covariance_element(moc->kasa_fit.acc_xy,
moc->kasa_fit.acc_x,
- moc->kasa_fit.acc_y,
- inv);
+ moc->kasa_fit.acc_y, inv);
S[0][2] = S[2][0] = covariance_element(moc->kasa_fit.acc_xz,
moc->kasa_fit.acc_x,
- moc->kasa_fit.acc_z,
- inv);
- S[1][1] = covariance_element(moc->kasa_fit.acc_yy,
- moc->kasa_fit.acc_y,
- moc->kasa_fit.acc_y,
- inv);
+ moc->kasa_fit.acc_z, inv);
+ S[1][1] = covariance_element(moc->kasa_fit.acc_yy, moc->kasa_fit.acc_y,
+ moc->kasa_fit.acc_y, inv);
S[1][2] = S[2][1] = covariance_element(moc->kasa_fit.acc_yz,
moc->kasa_fit.acc_y,
- moc->kasa_fit.acc_z,
- inv);
- S[2][2] = covariance_element(moc->kasa_fit.acc_zz,
- moc->kasa_fit.acc_z,
- moc->kasa_fit.acc_z,
- inv);
+ moc->kasa_fit.acc_z, inv);
+ S[2][2] = covariance_element(moc->kasa_fit.acc_zz, moc->kasa_fit.acc_z,
+ moc->kasa_fit.acc_z, inv);
mat33_fp_get_eigenbasis(S, eigenvals, eigenvecs);
@@ -90,9 +81,8 @@ static int moc_eigen_test(struct mag_cal_t *moc)
evmag = fp_sqrtf(eigenvals[X] + eigenvals[Y] + eigenvals[Z]);
- eigen_pass = (fp_mul(evmin, MAX_EIGEN_RATIO) > evmax)
- && (evmag > MIN_EIGEN_MAG)
- && (evmag < MAX_EIGEN_MAG);
+ eigen_pass = (fp_mul(evmin, MAX_EIGEN_RATIO) > evmax) &&
+ (evmag > MIN_EIGEN_MAG) && (evmag < MAX_EIGEN_MAG);
#if 0
CPRINTF("mag eigenvalues: (%.02d %.02d %.02d), ",
