1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Decouple board alignment code.

This commit is contained in:
Dominic Clifton 2014-04-17 19:28:38 +01:00
parent 59a5846146
commit 41b5a01958
7 changed files with 40 additions and 20 deletions

View file

@ -187,9 +187,9 @@ static void resetConf(void)
mcfg.gyro_align = ALIGN_DEFAULT;
mcfg.acc_align = ALIGN_DEFAULT;
mcfg.mag_align = ALIGN_DEFAULT;
mcfg.board_align_roll = 0;
mcfg.board_align_pitch = 0;
mcfg.board_align_yaw = 0;
mcfg.boardAlignment.rollDegrees = 0;
mcfg.boardAlignment.pitchDegrees = 0;
mcfg.boardAlignment.yawDegrees = 0;
mcfg.acc_hardware = ACC_DEFAULT; // default/autodetect
mcfg.max_angle_inclination = 500; // 50 degrees
mcfg.yaw_control_direction = 1;