1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 09:45:21 +03:00

moved sync pulse sending to *before* periodic mixer processing

This should enable a more stable pulse sending to the module.
This commit is contained in:
Raphael Coeffic 2020-09-08 12:07:09 +02:00
parent ef3b669d38
commit 92f27a853a
3 changed files with 22 additions and 3 deletions

View file

@ -168,12 +168,20 @@ TASK_FUNCTION(mixerTask)
DEBUG_TIMER_START(debugTimerMixer);
RTOS_LOCK_MUTEX(mixerMutex);
doMixerCalculations();
// TODO: fix runMask
sendSynchronousPulses((1 << INTERNAL_MODULE) | (1 << EXTERNAL_MODULE));
doMixerPeriodicUpdates();
DEBUG_TIMER_START(debugTimerMixerCalcToUsage);
DEBUG_TIMER_SAMPLE(debugTimerMixerIterval);
RTOS_UNLOCK_MUTEX(mixerMutex);
DEBUG_TIMER_STOP(debugTimerMixer);
#if defined(STM32) && !defined(SIMU)
if (getSelectedUsbMode() == USB_JOYSTICK_MODE) {
usbJoystickUpdate();
@ -202,9 +210,6 @@ TASK_FUNCTION(mixerTask)
// between protocols with multi-proto RF
if (timeout)
serialPrint("mix sched timeout!");
// TODO: fix runMask
sendSynchronousPulses((1 << INTERNAL_MODULE) | (1 << EXTERNAL_MODULE));
}
}
}