1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Adding additional MOTOR pin mappings for defaults (#12364)

This commit is contained in:
J Blackman 2023-02-15 02:54:49 +11:00 committed by GitHub
parent 25b3b58385
commit 2a17cedde9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,10 +79,18 @@ void pgResetFn_motorConfig(motorConfig_t *motorConfig)
#ifdef MOTOR4_PIN
motorConfig->dev.ioTags[3] = IO_TAG(MOTOR4_PIN);
#endif
/*
NOTE as we predominantly build for quads, the default motor pin defines is 4,
add more if a specific configuration ever requires it.
*/
#ifdef MOTOR5_PIN
motorConfig->dev.ioTags[4] = IO_TAG(MOTOR5_PIN);
#endif
#ifdef MOTOR6_PIN
motorConfig->dev.ioTags[5] = IO_TAG(MOTOR6_PIN);
#endif
#ifdef MOTOR7_PIN
motorConfig->dev.ioTags[6] = IO_TAG(MOTOR7_PIN);
#endif
#ifdef MOTOR8_PIN
motorConfig->dev.ioTags[7] = IO_TAG(MOTOR8_PIN);
#endif
#endif
motorConfig->motorPoleCount = 14; // Most brushes motors that we use are 14 poles