Latency script improved

This commit is contained in:
Bertrand Songis
2019-07-05 19:21:12 +02:00
parent 841305c9ba
commit fbe92ca5f0
2 changed files with 30 additions and 10 deletions
@@ -32,11 +32,8 @@ void intmoduleStop()
INTMODULE_TIMER->CR1 &= ~TIM_CR1_CEN;
}
#if defined(DEBUG_LATENCY)
#define HEARBEAT_OFFSET unsigned(5500 + g_model.flightModeData[0].gvars[0] * 100)
#else
constexpr unsigned HEARBEAT_OFFSET = 5500;
#endif
// #define HEARBEAT_OFFSET unsigned(6000 + g_model.flightModeData[0].gvars[0] * 100)
constexpr unsigned HEARBEAT_OFFSET = 6000;
void intmoduleSendNextFrame()
{