[all] THR and TH% are zeroed on flight reset

This commit is contained in:
bsongis@gmail.com
2013-06-08 11:14:15 +00:00
parent 86a7429f51
commit f4bdc3888e
2 changed files with 17 additions and 17 deletions
+9 -3
View File
@@ -912,9 +912,15 @@ extern uint16_t lastMixerDuration;
#if defined(THRTRACE)
#define MAXTRACE (LCD_W - 8)
extern uint8_t s_traceBuf[MAXTRACE];
extern uint8_t s_traceWr;
extern int s_traceCnt;
extern uint8_t s_traceBuf[MAXTRACE];
extern uint8_t s_traceWr;
extern int s_traceCnt;
extern uint8_t s_cnt_10s;
extern uint16_t s_cnt_samples_thr_10s;
extern uint16_t s_sum_samples_thr_10s;
#define RESET_THR_TRACE() s_traceCnt = s_traceWr = s_cnt_10s = s_cnt_samples_thr_10s = s_sum_samples_thr_10s = s_timeCum16ThrP = s_timeCumThr = 0
#else
#define RESET_THR_TRACE() s_timeCum16ThrP = s_timeCumThr = 0
#endif
#if defined(PCBTARANIS)