mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Initial implementation of DSHOT protocol (600 and 150)
This commit is contained in:
parent
7db9b9cbc7
commit
4e529642d1
22 changed files with 637 additions and 100 deletions
|
@ -259,8 +259,9 @@ void init(void)
|
|||
featureClear(FEATURE_3D);
|
||||
idlePulse = 0; // brushed motors
|
||||
}
|
||||
|
||||
#ifdef USE_QUAD_MIXER_ONLY
|
||||
motorInit(&masterConfig.motorConfig, idlePulse, 4);
|
||||
motorInit(&masterConfig.motorConfig, idlePulse, QUAD_MOTOR_COUNT);
|
||||
#else
|
||||
motorInit(&masterConfig.motorConfig, idlePulse, mixers[masterConfig.mixerMode].motorCount);
|
||||
#endif
|
||||
|
@ -281,10 +282,7 @@ void init(void)
|
|||
pwmRxSetInputFilteringMode(masterConfig.inputFilteringMode);
|
||||
#endif
|
||||
|
||||
bool usingUnsyncedOutput = (masterConfig.motorConfig.useUnsyncedPwm
|
||||
|| masterConfig.motorConfig.motorPwmProtocol == PWM_TYPE_BRUSHED
|
||||
|| masterConfig.motorConfig.motorPwmProtocol == PWM_TYPE_STANDARD);
|
||||
mixerUsePWMOutputConfiguration(usingUnsyncedOutput);
|
||||
mixerConfigureOutput();
|
||||
|
||||
systemState |= SYSTEM_STATE_MOTORS_READY;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue