Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FW position failsafe defaults #7894

Merged
merged 2 commits into from
Sep 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ROMFS/px4fmu_common/init.d/rc.fw_defaults
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ then
#
# Default parameters for FW
#
param set COM_POS_FS_DELAY 5
param set COM_POS_FS_PROB 1
param set COM_POS_FS_GAIN 0

param set EKF2_ARSP_THR 8.0
param set EKF2_FUSE_BETA 0
Expand Down
4 changes: 2 additions & 2 deletions src/modules/commander/commander_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ PARAM_DEFINE_INT32(COM_ARM_AUTH, 256010);
/**
* Loss of position failsafe activation delay.
*
* This sets number of second that the position checks need to be failed before the failsafe will activate.
* This sets number of seconds that the position checks need to be failed before the failsafe will activate.
* The default value has been optimised for rotary wing applications. For fixed wing applications, a larger value between 5 and 10 should be used.
*
* @unit sec
Expand All @@ -653,7 +653,7 @@ PARAM_DEFINE_INT32(COM_POS_FS_DELAY, 1);
/**
* Loss of position probation delay at takeoff.
*
* The probation delay is number of seconds that the EKF innovation checks need to pass for the positon to be declared good after it has been declared bad.
* The probation delay is the number of seconds that the EKF innovation checks need to pass for the position to be declared good after it has been declared bad.
* The probation delay will be reset to this parameter value when takeoff is detected.
* After takeoff, if position checks are passing, the probation delay will reduce by one second for every lapsed second of valid position down to a minimum of 1 second.
* If position checks are failing, the probation delay will increase by COM_POS_FS_GAIN seconds for every lapsed second up to a maximum of 100 seconds.
Expand Down