Merge pull request #7048 from dthakur/patch-1

Minor comment fix
This commit is contained in:
Michael Keller 2018-11-06 07:47:41 +13:00 committed by GitHub
commit 83cc94ec9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ void updateGPSRescueState(void)
// We have reached the XYZ envelope to be considered at "home". We need to land gently and check our accelerometer for abnormal data.
// At this point, do not let the target altitude go up anymore, so if we overshoot, we dont' move in a parabolic trajectory
// If we are over 120% of average magnitude, just disarm since we're pretty much home
// If we are over 150% of average magnitude, just disarm since we're pretty much home
if (rescueState.sensor.accMagnitude > rescueState.sensor.accMagnitudeAvg * 1.5) {
setArmingDisabled(ARMING_DISABLED_ARM_SWITCH);
disarm();