Skip to content

Commit 563b655

Browse files
committed
Revert gyro_scale override
Revert override on gyro_scale as BF controller now sends correct value
1 parent 965d945 commit 563b655

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

js/flightlog_parser.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,12 +537,7 @@ var FlightLogParser = function(logData) {
537537
break;
538538
case "gyro.scale":
539539
case "gyro_scale":
540-
541-
if(semver.gte(that.sysConfig.firmwareVersion, '3.1.0') && that.sysConfig.firmwareType == FIRMWARE_TYPE_BETAFLIGHT) {
542-
that.sysConfig.gyroScale = 1.0; // logged gyro data is now scaled in the flight controller for betaflight
543-
} else {
544-
that.sysConfig.gyroScale = hexToFloat(fieldValue);
545-
}
540+
that.sysConfig.gyroScale = hexToFloat(fieldValue);
546541

547542
/* Baseflight uses a gyroScale that'll give radians per microsecond as output, whereas Cleanflight produces degrees
548543
* per second and leaves the conversion to radians per us to the IMU. Let's just convert Cleanflight's scale to

0 commit comments

Comments
 (0)