feat: 1khz update rate for joystick / flight simulators (#3759)

* 1khz update rate for F.Sim competitions

* chore: Update comment
This commit is contained in:
3djc
2023-07-05 20:15:17 +10:00
committed by GitHub
parent 0d0556df29
commit 8f01308ee1
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -21,6 +21,7 @@
#include "opentx.h"
#include "tasks.h"
#include "mixer_scheduler.h"
#include "hal/adc_driver.h"
@@ -204,6 +205,9 @@ void menuStatisticsDebug(event_t event)
lcdDrawTextAlignedLeft(y, STR_TMIXMAXMS);
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, DURATION_MS_PREC2(maxMixerDuration), PREC2|LEFT);
lcdDrawText(lcdLastRightPos, y, STR_MS);
lcdDrawText(lcdLastRightPos, y, " (");
lcdDrawNumber(lcdLastRightPos, y, getMixerSchedulerPeriod() / 1000, LEFT);
lcdDrawText(lcdLastRightPos, y, "ms)");
y += FH;
lcdDrawTextAlignedLeft(y, STR_FREE_STACK);
+1 -1
View File
@@ -24,7 +24,7 @@
#include <stdint.h>
#define MIXER_SCHEDULER_DEFAULT_PERIOD_US 4000u // 4ms
#define MIXER_SCHEDULER_JOYSTICK_PERIOD_US 2000u // 2ms
#define MIXER_SCHEDULER_JOYSTICK_PERIOD_US 1000u // 1ms
#define MIN_REFRESH_RATE 850 /* us */
#define MAX_REFRESH_RATE 50000 /* us */