Valiantsin Dzerakh and Claude Opus 5.5
0efa904d90
A new controller no longer inherits the previous one's gyro bias, and a calibration where the pad moved is rejected
...
The bias reset in sensors_ready only ran when sensor_pad was nonzero, but scan_pads zeroes it on every disconnect,
so a pad connected after another one kept the old pad's bias, and an attempt still collecting finished on the new
pad under the old pad's name. The bias was also loaded only once, at the first StartSixAxisSensor.
- input.c pad_bias_select runs for every pad the sensor code sees: it drops the old bias and attempt, then loads the
saved bias when gyro_bias_pad names this pad. scan_pads drops them on disconnect. The bias loads with
gyro_calibration off too, so turning the switch on mid-run applies it.
- The pad identity is the name plus an FNV-1a hash of SDL's serial when the pad reports one, so two pads of one
model no longer share a bias; the hash keeps the Bluetooth address out of totk.ini and the log.
- An attempt skips 0.5 s of samples (the button press shakes the pad), then averages 1 s. It is rejected when the
largest per-axis standard deviation exceeds 0.04 rad/s; a steady bias of any size passes. The row then says the
controller moved (new UI_MENU_GYRO_CALIBRATE_MOVED in all four catalogs) and the bias in effect stays.
- The timeout counts 5 s without a sample, not 5 s from the start.
- Calibrate gyro starts the sensor thread when the game has not yet (title screen) instead of doing nothing.
- Row states are an enum (MOTION_CALIB_*); motion_calibrate_start takes the clock, and only the gamepad's fusion
instance writes totk.ini, so --probe-services now checks a measured bias, a rejected attempt and the timeout.
- The duplicate copy_name in motion_fusion.c is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-15 09:32:05 +03:00
..
2026-11-11 13:15:39 +00:00
2026-11-12 23:21:04 +03:00
2026-10-23 23:54:57 +03:00
2026-11-15 09:32:05 +03:00
2026-11-03 16:39:50 +03:00
2026-11-02 17:43:29 +03:00
2026-10-25 18:28:00 +03:00
2026-10-31 13:59:28 +03:00
2026-11-13 08:38:08 +03:00
2026-11-13 08:38:08 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-14 22:28:42 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-13 08:38:08 +03:00
2026-11-14 22:28:42 +03:00
2026-10-31 07:34:59 +03:00
2026-11-07 16:38:26 +03:00
2026-11-14 19:05:18 +03:00
2026-10-31 07:08:11 -05:00
2026-11-14 22:19:51 +03:00
2026-11-15 09:32:05 +03:00
2026-11-12 19:02:31 +03:00
2026-11-14 15:12:35 +03:00
2026-11-01 14:16:53 +03:00
2026-10-31 10:02:16 -04:00
2026-10-30 15:29:53 +01:00
2026-11-15 00:31:00 +03:00
2026-11-11 14:48:24 +01:00
2026-11-03 20:56:36 +03:00
2026-11-01 10:10:09 +03:00
2026-10-23 22:27:54 +03:00
2026-11-03 17:31:58 +08:00
2026-11-03 08:40:13 +08:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-01 07:09:13 +08:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-10 18:44:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-12 19:02:31 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:40:34 +03:00
2026-11-12 18:29:24 +03:00
2026-11-12 03:29:24 +02:00
2026-10-29 16:56:56 -03:00
2026-11-04 15:00:36 +03:00
2026-11-10 23:24:11 +03:00
2026-11-01 21:08:13 +08:00
2026-11-04 18:05:21 +03:00
2026-10-31 21:17:12 +01:00
2026-11-02 17:36:09 +03:00
2026-11-05 08:30:33 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-10-31 21:17:12 +01:00
2026-10-31 21:17:12 +01:00
2026-11-12 23:21:04 +03:00
2026-10-31 21:17:12 +01:00
2026-11-14 19:05:18 +03:00
2026-11-14 19:05:18 +03:00
2026-11-14 22:19:51 +03:00
2026-11-14 22:19:51 +03:00
2026-11-12 18:21:53 +03:00
2026-11-02 17:36:09 +03:00
2026-11-12 18:21:53 +03:00
2026-10-29 16:56:56 -03:00
2026-11-11 14:48:24 +01:00
2026-11-15 09:32:05 +03:00
2026-11-15 09:32:05 +03:00
2026-11-14 19:05:18 +03:00
2026-10-29 16:56:56 -03:00
2026-11-14 19:05:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-01 10:10:09 +03:00
2026-11-15 00:31:00 +03:00
2026-11-15 00:31:00 +03:00
2026-11-10 20:13:59 +01:00
2026-11-14 11:35:29 +03:00
2026-11-11 13:12:21 +03:00
2026-11-06 15:51:42 +01:00
2026-11-06 15:51:42 +01:00
2026-11-10 14:32:15 -05:00
2026-11-15 09:32:05 +03:00
2026-11-12 03:29:24 +02:00
2026-11-15 00:31:00 +03:00
2026-11-03 23:27:39 +01:00
2026-10-31 14:11:46 +00:00
2026-10-31 14:11:46 +00:00
2026-11-09 09:53:30 +03:00
2026-11-12 23:41:44 +01:00
2026-11-10 23:24:11 +03:00
2026-11-07 10:55:55 +01:00
2026-10-29 12:58:01 +03:00
2026-11-14 11:35:29 +03:00
2026-11-02 10:40:51 -03:00
2026-10-29 12:58:01 +03:00
2026-11-15 08:54:22 +03:00
2026-10-29 16:56:56 -03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 14:31:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-11-09 09:53:30 +03:00
2026-11-12 20:31:40 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-11-13 08:38:08 +03:00
2026-11-03 23:41:10 +01:00
2026-11-15 09:32:05 +03:00
2026-10-31 14:11:46 +00:00
2026-11-13 08:38:08 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 17:50:40 +03:00
2026-11-08 11:46:10 +03:00
2026-11-03 20:09:22 +03:00
2026-11-03 20:09:22 +03:00
2026-11-06 10:55:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-14 23:07:00 +03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-10-23 22:27:54 +03:00
2026-11-13 08:38:08 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-15 00:31:00 +03:00
2026-11-15 00:31:00 +03:00
2026-11-06 10:52:28 +03:00
2026-10-29 17:29:31 -03:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 12:41:12 +03:00
2026-10-29 12:41:12 +03:00
2026-10-31 13:26:42 +03:00
2026-10-23 22:27:54 +03:00
2026-10-25 14:14:46 +03:00
2026-11-07 10:55:55 +01:00
2026-10-31 07:27:46 +03:00
2026-10-26 16:48:02 +03:00
2026-10-30 13:40:04 +03:00
2026-10-26 16:48:02 +03:00
2026-11-15 09:32:05 +03:00
2026-11-15 09:32:05 +03:00
2026-10-29 16:56:56 -03:00
2026-11-09 09:20:09 +03:00
2026-11-10 18:20:16 +01:00
2026-11-10 09:01:54 +03:00
2026-10-31 10:02:16 -04:00
2026-11-10 14:59:34 +01:00
2026-11-08 19:39:17 +03:00
2026-11-07 16:38:26 +03:00
2026-11-14 11:35:29 +03:00
2026-11-14 08:34:52 +03:00
2026-11-08 19:39:18 +03:00
2026-10-31 14:44:48 +03:00
2026-11-14 20:03:24 +03:00
2026-11-11 23:51:01 +03:00
2026-11-08 19:39:17 +03:00
2026-11-13 23:40:01 +03:00
2026-11-13 23:40:01 +03:00
2026-10-31 07:27:46 +03:00
2026-10-31 13:26:42 +03:00
2026-11-12 23:21:04 +03:00
2026-11-09 10:51:49 +03:00
2026-11-12 23:41:44 +01:00
2026-11-03 17:31:58 +08:00
2026-11-10 14:59:31 +01:00
2026-11-03 19:39:49 +03:00
2026-11-08 19:39:17 +03:00
2026-11-14 11:35:29 +03:00
2026-11-14 11:35:29 +03:00
2026-11-08 19:39:17 +03:00
2026-11-10 18:20:16 +01:00
2026-11-13 08:38:20 +03:00
2026-11-08 19:39:17 +03:00
2026-10-23 22:27:54 +03:00
2026-11-10 23:24:11 +03:00
2026-11-03 01:19:10 +08:00