ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.7k stars 2.34k forks source link

Boring "BAD AHRS" and "BAD GPS Health" during SITL and X-Plane 11 #2156

Open robustini opened 5 years ago

robustini commented 5 years ago

Issue details

During built-in or custom SITL with X-Plane these AHRS errors continue to appear, this obviously clears any other message and is really boring. AHRS_EFK_TYPE cheating already set to 10, the problem is there anyway. @meee1, I hope we can find a solution.

https://youtu.be/zOJVnTfiBr8

Version

The latest beta

Platform

[ ] All [ ] AntennaTracker [ ] Copter [ x ] Plane [ ] Rover [ ] Sub

Airframe type

Glider

Hardware type

SITL

Logs

Log is related to the simulated flight in the video

00000004.ZIP

magicrub commented 5 years ago

bad GPS will lead to bad AHRS. The question becomes: why is the GPS bad in the sim?

magicrub commented 5 years ago

params look OK, I think those are all defaults

GPS_AUTO_CONFIG 1
GPS_AUTO_SWITCH 1
GPS_BLEND_MASK  5
GPS_BLEND_TC    10
GPS_DELAY_MS    0
GPS_DELAY_MS2   0
GPS_GNSS_MODE   0
GPS_GNSS_MODE2  0
GPS_INJECT_TO   127
GPS_MIN_DGPS    100
GPS_MIN_ELEV    -100
GPS_NAVFILTER   8
GPS_POS1_X  0
GPS_POS1_Y  0
GPS_POS1_Z  0
GPS_POS2_X  0
GPS_POS2_Y  0
GPS_POS2_Z  0
GPS_RATE_MS 200
GPS_RATE_MS2    200
GPS_RAW_DATA    0
GPS_SAVE_CFG    0
GPS_SBAS_MODE   2
GPS_SBP_LOGMASK -32768
GPS_TYPE    1
GPS_TYPE2   0
meee1 commented 5 years ago

the message is displayed based on what MP is told !sensors_health.ahrs && sensors_enabled.ahrs && sensors_present.ahrs

the "sensor" is enabled, present and not health. so there are 2 solutions. either make xplanes sitl not send this status to MP. or add a exclusion for sitl for MP to ignore.

my preferred approach would be not get bad data in the first place, and resolve the underlying issue. vs just sweeping it under the rug.

robustini commented 5 years ago

Thanks Michael for reply. So it's a problem that @tridge should solve?