Use software timers to trigger telemetry processing

This commit is contained in:
Raphael Coeffic
2022-03-25 16:50:00 +01:00
parent 7d4c814215
commit 59191f37c3
5 changed files with 57 additions and 33 deletions
+2 -23
View File
@@ -260,29 +260,8 @@ uint8_t actualAfhdsRunPower(int moduleIndex);
#endif
void extramodulePpmStart();
inline void startPulses()
{
s_pulses_paused = false;
#if defined(HARDWARE_INTERNAL_MODULE)
setupPulsesInternalModule();
#endif
#if defined(HARDWARE_EXTERNAL_MODULE)
setupPulsesExternalModule();
#endif
#if defined(HARDWARE_EXTRA_MODULE)
extramodulePpmStart();
#endif
}
inline void stopPulses()
{
s_pulses_paused = true;
for (uint8_t i = 0; i < NUM_MODULES; i++)
moduleState[i].protocol = PROTOCOL_CHANNELS_UNINITIALIZED;
}
void startPulses();
void stopPulses();
inline bool pulsesStarted()
{