1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Cleaned up Dshot naming, containment.

This commit is contained in:
Michael Keller 2017-06-23 20:06:24 +12:00 committed by mikeller
parent 8ab13665bb
commit 779823fb79
7 changed files with 43 additions and 59 deletions

View file

@ -336,23 +336,6 @@ bool mixerIsOutputSaturated(int axis, float errorRate)
return false;
}
bool isMotorProtocolDshot(void) {
#ifdef USE_DSHOT
switch(motorConfig()->dev.motorPwmProtocol) {
case PWM_TYPE_PROSHOT1000:
case PWM_TYPE_DSHOT1200:
case PWM_TYPE_DSHOT600:
case PWM_TYPE_DSHOT300:
case PWM_TYPE_DSHOT150:
return true;
default:
return false;
}
#else
return false;
#endif
}
// All PWM motor scaling is done to standard PWM range of 1000-2000 for easier tick conversion with legacy code / configurator
// DSHOT scaling is done to the actual dshot range
void initEscEndpoints(void) {