We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b6892 commit d5a55fcCopy full SHA for d5a55fc
src/js/tabs/onboard_logging.js
@@ -180,7 +180,12 @@ TABS.onboard_logging.initialize = function (callback) {
180
181
// Offer a reasonable choice of logging rates (if people want weird steps they can use CLI)
182
var loggingRates = [];
183
- var pidRate = 32000 / PID_ADVANCED_CONFIG.gyro_sync_denom / PID_ADVANCED_CONFIG.pid_process_denom;
+ var pidRateBase = 8000;
184
+
185
+ if (PID_ADVANCED_CONFIG.gyroUse32kHz !== 0) pidRateBase = 32000;
186
187
+ var pidRate = pidRateBase / PID_ADVANCED_CONFIG.gyro_sync_denom /
188
+ PID_ADVANCED_CONFIG.pid_process_denom;
189
190
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
191
loggingRates = [
0 commit comments