mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
smallAngle configurable, user can arm/disarm with swith in any
orientation Conflicts: src/cli.c src/config.c src/imu.c src/mw.c src/mw.h
This commit is contained in:
parent
3b629d58a0
commit
9cf90fa230
5 changed files with 13 additions and 5 deletions
|
@ -80,7 +80,7 @@ static void getEstimatedAttitude(void);
|
|||
|
||||
void imuInit()
|
||||
{
|
||||
smallAngle = lrintf(acc_1G * cosf(RAD * 25.0f));
|
||||
smallAngle = lrintf(acc_1G * cosf(RAD * imuRuntimeConfig->small_angle));
|
||||
accVelScale = 9.80665f / acc_1G / 10000.0f;
|
||||
gyroScaleRad = gyro.scale * (M_PI / 180.0f) * 0.000001f;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue