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:
parent
59a5846146
commit
41b5a01958
7 changed files with 40 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue