@@ -7,7 +7,7 @@ import FC from "../fc";
7
7
import MSP from "../msp" ;
8
8
import MSPCodes from "../msp/MSPCodes" ;
9
9
import PortHandler from "../port_handler" ;
10
- import CONFIGURATOR , { API_VERSION_1_42 , API_VERSION_1_43 , API_VERSION_1_44 , API_VERSION_1_45 } from "../data_storage" ;
10
+ import CONFIGURATOR , { API_VERSION_1_42 , API_VERSION_1_43 , API_VERSION_1_44 , API_VERSION_1_45 , API_VERSION_1_46 } from "../data_storage" ;
11
11
import LogoManager from "../LogoManager" ;
12
12
import { gui_log } from "../gui_log" ;
13
13
import semver from "semver" ;
@@ -1682,6 +1682,16 @@ OSD.constants = {
1682
1682
text : 'osdTextStatMinRSNR' ,
1683
1683
desc : 'osdDescStatMinRSNR' ,
1684
1684
} ,
1685
+ STAT_BEST_3_CONSEC_LAPS : {
1686
+ name : 'STAT_BEST_3_CONSEC_LAPS' ,
1687
+ text : 'osdTextStatBest3ConsecLaps' ,
1688
+ desc : 'osdDescStatBest3ConsecLaps' ,
1689
+ } ,
1690
+ STAT_BEST_LAP : {
1691
+ name : 'STAT_BEST_LAP' ,
1692
+ text : 'osdTextStatBestLap' ,
1693
+ desc : 'osdDescStatBestLap' ,
1694
+ } ,
1685
1695
} ,
1686
1696
ALL_WARNINGS : {
1687
1697
ARMING_DISABLED : {
@@ -1979,6 +1989,13 @@ OSD.chooseFields = function() {
1979
1989
] ) ;
1980
1990
}
1981
1991
1992
+ if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_46 ) ) {
1993
+ OSD . constants . STATISTIC_FIELDS = OSD . constants . STATISTIC_FIELDS . concat ( [
1994
+ F . STAT_BEST_3_CONSEC_LAPS ,
1995
+ F . STAT_BEST_LAP ,
1996
+ ] ) ;
1997
+ }
1998
+
1982
1999
// Choose warnings
1983
2000
// Nothing much to do here, I'm preempting there being new warnings
1984
2001
F = OSD . constants . ALL_WARNINGS ;
0 commit comments