betaflight / config

Betaflight target definitions
GNU General Public License v3.0
30 stars 105 forks source link

FLYCOLORF7* bug fixes #490

Closed tobeornottobe81 closed 3 months ago

tobeornottobe81 commented 3 months ago

FLYCOLORF7_AIO: Add Definitions for Targets
FLYCOLORF7V2: Correction of MOTOR3 pin definition
FLYCOLORF7: Add BARO Definitions for Target

nerdCopter commented 2 months ago

i noticed FLYCOLORF7_AIO has gyro2 pins, but no GYRO_2_SPI_INSTANCE.

also, is this normal? i typically only see GYRO_1_ALIGN (where if set to CW0_DEG this is also default & not needed) and i've seen GYRO_1_ALIGN_YAW but typically do not see roll/pitch defined.

#define GYRO_1_ALIGN_ROLL 0
#define GYRO_1_ALIGN_PITCH 0
#define GYRO_1_ALIGN_YAW 0
haslinghuis commented 2 months ago

Probably cleanup:

#define GYRO_2_EXTI_PIN      PC4
#define GYRO_2_CS_PIN        PB2

As for

#define GYRO_1_ALIGN_ROLL 0
#define GYRO_1_ALIGN_PITCH 0
#define GYRO_1_ALIGN_YAW 0

it seems to use ALIGN_DEFAULT

https://github.com/betaflight/betaflight/blob/cf6d1c1eb6aca641c5ed3b0c08b23f0769991188/src/main/common/sensor_alignment.h#L26-L42

GYRO_1_ALIGN defaults to CW0_DEG

https://github.com/betaflight/betaflight/blob/cf6d1c1eb6aca641c5ed3b0c08b23f0769991188/src/main/pg/gyrodev.c#L60-L68