deal with fall through of table filling in ratecorr table
Build on RHEL9 docker image / build (push) Successful in 3m58s
Build on RHEL8 docker image / build (push) Successful in 5m8s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m42s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m6s

This commit is contained in:
Erik Frojdh committed 2026-10-26 12:12:13 +01:00
1 parent 8e24c0196f
commit f69856b5ff
1 file changed
+5 -2
@@ -2022,7 +2022,7 @@ int Feb_Control_SetRateCorrectionTau(int64_t tau_in_Nsec) {
*/
int next_i = 0;
double beforemax;
double beforemax = 0;
b0[0] = 0;
m[0] = 1;
@@ -2032,6 +2032,7 @@ int Feb_Control_SetRateCorrectionTau(int64_t tau_in_Nsec) {
for (int b = 1; b < 1024; b++) {
if (m[b - 1] < 15) {
double s = 0, sx = 0, sy = 0, sxx = 0, sxy = 0;
int filled = 0;
for (;; next_i++) {
if (next_i >= np) {
for (; b < 1024; b++) {
@@ -2044,7 +2045,7 @@ int Feb_Control_SetRateCorrectionTau(int64_t tau_in_Nsec) {
(((int)(m[b] + 0.5) & 0xf) << 14) |
((int)(b0[b] + 0.5) & 0x3fff);
}
b = 1024;
filled = 1;
break;
}
@@ -2069,6 +2070,8 @@ int Feb_Control_SetRateCorrectionTau(int64_t tau_in_Nsec) {
Feb_Control_rate_meas[next_i]: %f\n", x, y, s, sx, sy, sxx, sxy,
next_i, b, Feb_Control_rate_meas[next_i]));*/
}
if (filled)
break;
double delta = s * sxx - sx * sx;
b0[b] = (sxx * sy - sx * sxy) / delta;
m[b] = (s * sxy - sx * sy) / delta;