mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Add dshot command queue and limit max notch filter frequency
This commit is contained in:
parent
10ae62efed
commit
7859e6d540
8 changed files with 93 additions and 43 deletions
|
@ -214,10 +214,8 @@ void activateDshotTelemetry(struct dispatchEntry_s* self)
|
|||
if (!ARMING_FLAG(ARMED))
|
||||
{
|
||||
pwmWriteDshotCommand(
|
||||
255, getMotorCount(),
|
||||
motorConfig()->dev.useDshotTelemetry ?
|
||||
DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY :
|
||||
DSHOT_CMD_SIGNAL_LINE_TELEMETRY_DISABLE, true);
|
||||
255, getMotorCount(), motorConfig()->dev.useDshotTelemetry ?
|
||||
DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY : DSHOT_CMD_SIGNAL_LINE_TELEMETRY_DISABLE, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -772,8 +770,10 @@ void init(void)
|
|||
|
||||
// TODO: potentially delete when feature is stable. Activation when arming is enough for flight.
|
||||
#if defined(USE_DSHOT) && defined(USE_DSHOT_TELEMETRY)
|
||||
dispatchEnable();
|
||||
dispatchAdd(&activateDshotTelemetryEntry, 5000000);
|
||||
if (motorConfig()->dev.useDshotTelemetry) {
|
||||
dispatchEnable();
|
||||
dispatchAdd(&activateDshotTelemetryEntry, 5000000);
|
||||
}
|
||||
#endif
|
||||
|
||||
fcTasksInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue