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.
2 parents dcebea0 + 188a19d commit e854411Copy full SHA for e854411
src/js/tabs/onboard_logging.js
@@ -180,7 +180,14 @@ 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 = 8000 / PID_ADVANCED_CONFIG.gyro_sync_denom / PID_ADVANCED_CONFIG.pid_process_denom;
+ var pidRateBase = 8000;
184
+
185
+ if (PID_ADVANCED_CONFIG.gyroUse32kHz !== 0) {
186
+ pidRateBase = 32000;
187
+ }
188
189
+ var pidRate = pidRateBase / PID_ADVANCED_CONFIG.gyro_sync_denom /
190
+ PID_ADVANCED_CONFIG.pid_process_denom;
191
192
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
193
loggingRates = [
0 commit comments