File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,17 @@ GraphConfig.load = function(config) {
244244 sysConfig = flightLog . getSysConfig ( ) ;
245245
246246 var maxDegreesSecond = function ( scale ) {
247- return Math . max ( flightLog . rcCommandRawToDegreesPerSecond ( 500 , 0 ) * scale ,
248- flightLog . rcCommandRawToDegreesPerSecond ( 500 , 1 ) * scale ,
249- flightLog . rcCommandRawToDegreesPerSecond ( 500 , 2 ) * scale ) ;
247+ switch ( sysConfig [ "rates_type" ] ) {
248+ case RATES_TYPE . indexOf ( 'ACTUAL' ) :
249+ case RATES_TYPE . indexOf ( 'QUICK' ) :
250+ return Math . max ( sysConfig [ "rates" ] [ 0 ] * 10.0 * scale ,
251+ sysConfig [ "rates" ] [ 1 ] * 10.0 * scale ,
252+ sysConfig [ "rates" ] [ 2 ] * 10.0 * scale ) ;
253+ default :
254+ return Math . max ( flightLog . rcCommandRawToDegreesPerSecond ( 500 , 0 ) * scale ,
255+ flightLog . rcCommandRawToDegreesPerSecond ( 500 , 1 ) * scale ,
256+ flightLog . rcCommandRawToDegreesPerSecond ( 500 , 2 ) * scale ) ;
257+ }
250258 }
251259
252260 var getMinMaxForFields = function ( /* fieldName1, fieldName2, ... */ ) {
You can’t perform that action at this time.
0 commit comments