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:
parent
ef3b669d38
commit
92f27a853a
3 changed files with 22 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue