Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
1fbc6887
Commit
1fbc6887
authored
8 years ago
by
Paul Riseborough
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Commander: Fix pre-flight EKF check errors
parent
9442c896
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/commander/PreflightCheck.cpp
+2
-2
2 additions, 2 deletions
src/modules/commander/PreflightCheck.cpp
src/modules/commander/commander_params.c
+5
-5
5 additions, 5 deletions
src/modules/commander/commander_params.c
with
7 additions
and
7 deletions
src/modules/commander/PreflightCheck.cpp
+
2
−
2
View file @
1fbc6887
...
...
@@ -500,7 +500,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_
}
// check accelerometer delta velocity bias estimates
param_get
(
param_find
(
"COM_ARM_
IMU
_AB"
),
&
test_limit
);
param_get
(
param_find
(
"COM_ARM_
EKF
_AB"
),
&
test_limit
);
if
(
fabsf
(
status
.
states
[
13
])
>
test_limit
||
fabsf
(
status
.
states
[
14
])
>
test_limit
||
fabsf
(
status
.
states
[
15
])
>
test_limit
)
{
if
(
report_fail
)
{
mavlink_log_critical
(
mavlink_log_pub
,
"PREFLIGHT FAIL: EKF HIGH IMU ACCEL BIAS"
);
...
...
@@ -510,7 +510,7 @@ static bool ekf2Check(orb_advert_t *mavlink_log_pub, bool optional, bool report_
}
// check gyro delta angle bias estimates
param_get
(
param_find
(
"COM_ARM_
IMU
_GB"
),
&
test_limit
);
param_get
(
param_find
(
"COM_ARM_
EKF
_GB"
),
&
test_limit
);
if
(
fabsf
(
status
.
states
[
10
])
>
test_limit
||
fabsf
(
status
.
states
[
11
])
>
test_limit
||
fabsf
(
status
.
states
[
12
])
>
test_limit
)
{
if
(
report_fail
)
{
mavlink_log_critical
(
mavlink_log_pub
,
"PREFLIGHT FAIL: EKF HIGH IMU GYRO BIAS"
);
...
...
This diff is collapsed.
Click to expand it.
src/modules/commander/commander_params.c
+
5
−
5
View file @
1fbc6887
...
...
@@ -527,11 +527,11 @@ PARAM_DEFINE_FLOAT(COM_ARM_EKF_YAW, 0.5f);
* @group Commander
* @unit m/s
* @min 0.001
* @max 0.0
04
* @max 0.0
1
* @decimal 4
* @increment 0.0005
*/
PARAM_DEFINE_FLOAT
(
COM_ARM_EKF_AB
,
2
.0e-3
f
);
PARAM_DEFINE_FLOAT
(
COM_ARM_EKF_AB
,
5
.0e-3
f
);
/**
* Maximum value of EKF gyro delta angle bias estimate that will allow arming
...
...
@@ -539,11 +539,11 @@ PARAM_DEFINE_FLOAT(COM_ARM_EKF_AB, 2.0e-3f);
* @group Commander
* @unit rad
* @min 0.0001
* @max 0.00
0
7
* @max 0.00
1
7
* @decimal 5
* @increment 0.000
05
* @increment 0.000
1
*/
PARAM_DEFINE_FLOAT
(
COM_ARM_EKF_GB
,
3.5
e-4
f
);
PARAM_DEFINE_FLOAT
(
COM_ARM_EKF_GB
,
8.7
e-4
f
);
/**
* Maximum accelerometer inconsistency between IMU units that will allow arming
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment