1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

check gyro32 flag to set pidratebase value

This commit is contained in:
DESKTOP-9KCKBM4\pff 2018-02-26 08:14:58 +02:00
parent 05b68927cd
commit d5a55fc3d8

View file

@ -180,7 +180,12 @@ TABS.onboard_logging.initialize = function (callback) {
// Offer a reasonable choice of logging rates (if people want weird steps they can use CLI)
var loggingRates = [];
var pidRate = 32000 / PID_ADVANCED_CONFIG.gyro_sync_denom / PID_ADVANCED_CONFIG.pid_process_denom;
var pidRateBase = 8000;
if (PID_ADVANCED_CONFIG.gyroUse32kHz !== 0) pidRateBase = 32000;
var pidRate = pidRateBase / PID_ADVANCED_CONFIG.gyro_sync_denom /
PID_ADVANCED_CONFIG.pid_process_denom;
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
loggingRates = [