Compare commits

..

No commits in common. "566cfc881108e6609bcbd57e27110526b5880c9c" and "e43c82d13205a8a7fdf7947d34ab51a1d8fe2082" have entirely different histories.

View File

@ -68,10 +68,8 @@ void mpu6000_calibrate(void) {
sum_gy += raw.gy;
sum_gz += raw.gz;
HAL_Delay(1);
/* Refresh IWDG every 40ms, starting immediately (i=0) — the gap between
* safety_refresh() at the top of the main loop and entry here can be
* ~10ms, so we must refresh on i=0 to avoid the 50ms IWDG window. */
if (i % 40 == 0) safety_refresh();
/* Refresh IWDG every 40ms — safe during re-cal with watchdog running */
if (i % 40 == 39) safety_refresh();
}
s_bias_gx = (float)sum_gx / GYRO_CAL_SAMPLES;