1
0
Fork 0
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:
ctzsnooze 2024-08-10 16:34:51 +10:00 committed by GitHub
parent 8f10f17245
commit f890287598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 72 additions and 25 deletions

View file

@ -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;