1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 05:15:21 +03:00

Motor direction dialog for Dshot escs

This commit is contained in:
Ivan Efimov 2020-12-16 22:58:43 -06:00
parent 0f8a2911d9
commit ca09909d6e
20 changed files with 1255 additions and 104 deletions

View file

@ -0,0 +1,15 @@
'use strict';
class CommonUtils
{
static GetMixerImageSrc(mixerIndex, reverseMotorDir, apiVersion)
{
let reverse = "";
if (semver.gte(apiVersion, API_VERSION_1_36)) {
reverse = reverseMotorDir ? "_reversed" : "";
}
return `./resources/motor_order/${mixerList[mixerIndex - 1].image}${reverse}.svg`;
}
}