mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Auto-disarm on landing impact (#13803)
* Disarm on landing * Changes from review comments, thanks PL * Sorry missed that one * calculate Acc magnitude once only, not multiple times * Include gyro factors as in crashRecovery * Fix bug in CrashRecovery delta gains Add temporary debugs to monitor error and delta inputs * remove 1G subtraction for accMagnitude thanks Karate * Use AccDelta or Jerk - thanks Karate * Revert using Gyro Setpoint and Delta * Fix typo, thanks Mark * increment PG version to 9
This commit is contained in:
parent
8f10f17245
commit
f890287598
16 changed files with 72 additions and 25 deletions
|
@ -56,6 +56,8 @@ typedef struct acc_s {
|
|||
uint16_t sampleRateHz;
|
||||
float accADC[XYZ_AXIS_COUNT];
|
||||
bool isAccelUpdatedAtLeastOnce;
|
||||
float accMagnitude;
|
||||
float accDelta;
|
||||
} acc_t;
|
||||
|
||||
extern acc_t acc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue