feat: 1khz update rate for joystick / flight simulators (#3759)
* 1khz update rate for F.Sim competitions * chore: Update comment
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user