@@ -657,6 +657,27 @@ function FlightLogFieldPresenter() {
657657 'debug[2]' :'Dyn Idle D [roll]' ,
658658 'debug[3]' :'Min RPM' ,
659659 } ;
660+ DEBUG_FRIENDLY_FIELD_NAMES . FFT = {
661+ 'debug[all]' :'Debug FFT' ,
662+ 'debug[0]' :'Gyro Pre Dyn Notch [dbg-axis]' ,
663+ 'debug[1]' :'Gyro Post Dyn Notch [dbg-axis]' ,
664+ 'debug[2]' :'Gyro Downsampled [dbg-axis]' ,
665+ 'debug[3]' :'Not used' ,
666+ } ;
667+ DEBUG_FRIENDLY_FIELD_NAMES . FFT_TIME = {
668+ 'debug[all]' :'Debug FFT TIME' ,
669+ 'debug[0]' :'Active calc step' ,
670+ 'debug[1]' :'Step duration' ,
671+ 'debug[2]' :'Not used' ,
672+ 'debug[3]' :'Not used' ,
673+ } ;
674+ DEBUG_FRIENDLY_FIELD_NAMES . FFT_FREQ = {
675+ 'debug[all]' :'Debug FFT FREQ' ,
676+ 'debug[0]' :'Notch 1 Center Freq [dbg-axis]' ,
677+ 'debug[1]' :'Notch 2 Center Freq [dbg-axis]' ,
678+ 'debug[2]' :'Notch 3 Center Freq [dbg-axis]' ,
679+ 'debug[3]' :'Gyro Pre Dyn Notch [dbg-axis]' ,
680+ } ;
660681 } else if ( semver . gte ( firmwareVersion , '4.2.0' ) ) {
661682 DEBUG_FRIENDLY_FIELD_NAMES . FF_INTERPOLATED = {
662683 'debug[all]' :'Feedforward [roll]' ,
@@ -950,11 +971,11 @@ function FlightLogFieldPresenter() {
950971 return value . toFixed ( 0 ) + "°C" ;
951972 case 'FFT' :
952973 switch ( fieldName ) {
953- case 'debug[0]' : // gyro pre- notch [for selected axis]
954- case 'debug[1]' : // gyro post- notch [for selected axis]
955- return Math . round ( flightLog . gyroRawToDegreesPerSecond ( value ) ) + "deg/s" ;
956- // debug 2 = sample average
957- // debug 3 = not used
974+ case 'debug[0]' : // gyro pre dyn notch [for gyro debug axis]
975+ case 'debug[1]' : // gyro post dyn notch [for gyro debug axis]
976+ case 'debug[2]' : // gyro pre dyn notch, downsampled for FFT [for gyro debug axis]
977+ return Math . round ( flightLog . gyroRawToDegreesPerSecond ( value ) ) + " deg/s" ;
978+ // debug 3 = not used
958979 default :
959980 return value . toFixed ( 0 ) ;
960981 }
@@ -963,17 +984,18 @@ function FlightLogFieldPresenter() {
963984 case 'debug[0]' :
964985 return FlightLogFieldPresenter . presentEnum ( value , FFT_CALC_STEPS ) ;
965986 case 'debug[1]' :
966- case 'debug[2]' :
967- return value . toFixed ( 0 ) + "\u03BCs" ;
987+ return value . toFixed ( 0 ) + " \u03BCs" ;
988+ // debug 2 = not used
989+ // debug 3 = not used
968990 default :
969991 return value . toFixed ( 0 ) ;
970992 }
971993 case 'FFT_FREQ' :
972994 switch ( fieldName ) {
973- case 'debug[3]' : // raw gyro [for debug axis]
974- return Math . round ( flightLog . gyroRawToDegreesPerSecond ( value ) ) + "deg/s" ;
995+ case 'debug[3]' : // gyro pre dyn notch [for gyro debug axis]
996+ return Math . round ( flightLog . gyroRawToDegreesPerSecond ( value ) ) + " deg/s" ;
975997 default :
976- return value . toFixed ( 0 ) + "Hz" ;
998+ return value . toFixed ( 0 ) + " Hz" ;
977999 }
9781000 case 'RTH' :
9791001 switch ( fieldName ) {
0 commit comments