Skip to content

Commit 0cb2613

Browse files
authored
Merge pull request #240 from McGiverGim/debug_fftfreq_debug3
Adjust content of debug[3] FFT_FREQ
2 parents cd775b3 + ba08088 commit 0cb2613

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

js/flightlog_fields_presenter.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function FlightLogFieldPresenter() {
234234
'debug[0]':'Center Freq [roll]',
235235
'debug[1]':'Center Freq [pitch]',
236236
'debug[2]':'Center Freq [yaw]',
237-
'debug[3]':'Not used',
237+
'debug[3]':'Gyro Raw [roll]',
238238
},
239239
'GYRO_RAW' : {
240240
'debug[all]':'Debug Gyro Raw',
@@ -485,7 +485,12 @@ function FlightLogFieldPresenter() {
485485
case 'FFT_TIME':
486486
return value.toFixed(0) + "\u03BCS";
487487
case 'FFT_FREQ':
488-
return value.toFixed(0) + "Hz";
488+
switch (fieldName) {
489+
case 'debug[3]':
490+
return Math.round(flightLog.gyroRawToDegreesPerSecond(value)) + "deg/s";
491+
default:
492+
return value.toFixed(0) + "Hz";
493+
}
489494
default:
490495
return value.toFixed(0);
491496
}

0 commit comments

Comments
 (0)