Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
27a3b5fb
Commit
27a3b5fb
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_AHRS: fixed wind reporting with EKF and no airspeed sensor
the EKF does not estimate wind without an airspeed sensor
parent
b78e59ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
+3
-1
3 additions, 1 deletion
libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
with
3 additions
and
1 deletion
libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
+
3
−
1
View file @
27a3b5fb
...
@@ -122,7 +122,9 @@ float AP_AHRS_NavEKF::get_error_yaw(void)
...
@@ -122,7 +122,9 @@ float AP_AHRS_NavEKF::get_error_yaw(void)
// return a wind estimation vector, in m/s
// return a wind estimation vector, in m/s
Vector3f
AP_AHRS_NavEKF
::
wind_estimate
(
void
)
Vector3f
AP_AHRS_NavEKF
::
wind_estimate
(
void
)
{
{
if
(
!
using_EKF
())
{
if
(
!
using_EKF
()
||
!
_airspeed
||
!
_airspeed
->
use
())
{
// EKF does not estimate wind speed when there is no airspeed
// sensor active
return
AP_AHRS_DCM
::
wind_estimate
();
return
AP_AHRS_DCM
::
wind_estimate
();
}
}
Vector3f
wind
;
Vector3f
wind
;
...
...
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