3838uint32_t stats_total_flights ;
3939uint32_t stats_total_time_s ;
4040uint32_t stats_total_dist_m ;
41+ uint32_t stats_extra_total_kaacks ;
4142int8_t stats_min_armed_time_s ;
4243
4344static const void * cmsx_PersistentStats_onEnter (displayPort_t * pDisp )
@@ -48,6 +49,7 @@ static const void *cmsx_PersistentStats_onEnter(displayPort_t *pDisp)
4849 stats_total_time_s = statsConfig ()-> stats_total_time_s ;
4950 stats_total_dist_m = statsConfig ()-> stats_total_dist_m ;
5051 stats_min_armed_time_s = statsConfig ()-> stats_min_armed_time_s ;
52+ stats_extra_total_kaacks = statsConfig ()-> stats_extra_total_kaacks ;
5153
5254 return NULL ;
5355}
@@ -61,6 +63,7 @@ static const void *cmsx_PersistentStats_onExit(displayPort_t *pDisp, const OSD_E
6163 statsConfigMutable ()-> stats_total_time_s = stats_total_time_s ;
6264 statsConfigMutable ()-> stats_total_dist_m = stats_total_dist_m ;
6365 statsConfigMutable ()-> stats_min_armed_time_s = stats_min_armed_time_s ;
66+ statsConfigMutable ()-> stats_extra_total_kaacks = stats_extra_total_kaacks ;
6467
6568 return NULL ;
6669}
@@ -72,6 +75,7 @@ static const void *cmsx_ResetStats(displayPort_t *pDisplay, const void *ptr)
7275 stats_total_flights = 0 ;
7376 stats_total_time_s = 0 ;
7477 stats_total_dist_m = 0 ;
78+ stats_extra_total_kaacks = 0 ;
7579
7680 displayClearScreen (pDisplay , DISPLAY_CLEAR_WAIT );
7781 displayRedraw (pDisplay );
@@ -83,6 +87,7 @@ static const OSD_Entry cmsx_menuPersistentStatsEntries[] =
8387{
8488 {"-- PERSISTENT STATS --" , OME_Label , NULL , NULL },
8589 {"FLIGHTS" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_flights , 0 , UINT32_MAX , 1 }},
90+ {"KAACKS" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_extra_total_kaacks , 0 , UINT32_MAX , 1 }},
8691 {"TIME(sec)" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_time_s , 0 , UINT32_MAX , 1 }},
8792 {"DIST(m)" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_dist_m , 0 , UINT32_MAX , 1 }},
8893 {"RESET STATS" , OME_Funcall , cmsx_ResetStats , NULL },
0 commit comments