@@ -39,6 +39,7 @@ uint32_t stats_total_flights;
3939uint32_t stats_total_time_s ;
4040uint32_t stats_total_dist_m ;
4141uint32_t stats_extra_total_kaacks ;
42+ uint32_t stats_extra_total_kaack_time ;
4243int8_t stats_min_armed_time_s ;
4344
4445static const void * cmsx_PersistentStats_onEnter (displayPort_t * pDisp )
@@ -50,6 +51,7 @@ static const void *cmsx_PersistentStats_onEnter(displayPort_t *pDisp)
5051 stats_total_dist_m = statsConfig ()-> stats_total_dist_m ;
5152 stats_min_armed_time_s = statsConfig ()-> stats_min_armed_time_s ;
5253 stats_extra_total_kaacks = statsConfig ()-> stats_extra_total_kaacks ;
54+ stats_extra_total_kaack_time = statsConfig ()-> stats_extra_total_kaack_time ;
5355
5456 return NULL ;
5557}
@@ -64,6 +66,7 @@ static const void *cmsx_PersistentStats_onExit(displayPort_t *pDisp, const OSD_E
6466 statsConfigMutable ()-> stats_total_dist_m = stats_total_dist_m ;
6567 statsConfigMutable ()-> stats_min_armed_time_s = stats_min_armed_time_s ;
6668 statsConfigMutable ()-> stats_extra_total_kaacks = stats_extra_total_kaacks ;
69+ statsConfigMutable ()-> stats_extra_total_kaack_time = stats_extra_total_kaack_time ;
6770
6871 return NULL ;
6972}
@@ -76,6 +79,7 @@ static const void *cmsx_ResetStats(displayPort_t *pDisplay, const void *ptr)
7679 stats_total_time_s = 0 ;
7780 stats_total_dist_m = 0 ;
7881 stats_extra_total_kaacks = 0 ;
82+ stats_extra_total_kaack_time = 0 ;
7983
8084 displayClearScreen (pDisplay , DISPLAY_CLEAR_WAIT );
8185 displayRedraw (pDisplay );
@@ -88,6 +92,7 @@ static const OSD_Entry cmsx_menuPersistentStatsEntries[] =
8892 {"-- PERSISTENT STATS --" , OME_Label , NULL , NULL },
8993 {"FLIGHTS" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_flights , 0 , UINT32_MAX , 1 }},
9094 {"KAACKS" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_extra_total_kaacks , 0 , UINT32_MAX , 1 }},
95+ {"KAACK TIME" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_extra_total_kaack_time , 0 , UINT32_MAX , 1 }},
9196 {"TIME(sec)" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_time_s , 0 , UINT32_MAX , 1 }},
9297 {"DIST(m)" , OME_UINT32 , NULL , & (OSD_UINT32_t ){ & stats_total_dist_m , 0 , UINT32_MAX , 1 }},
9398 {"RESET STATS" , OME_Funcall , cmsx_ResetStats , NULL },
0 commit comments