Improve Airspeed Sensor Performance and Enable User Defined XML Configuration #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposal
This proposal addresses two items associated with the airspeed sensor: 1)Improve Airspeed Sensor performance by using differential pressure directly from JSBSim rather than inferred 2)Enable user-defined JSBSim property mapping for airspeed sensor and define a new JSBSim airspeed sensor system file.
Description of Change 1:
Simplify differential pressure calculation from inferring from ground speed from:
to:
Before Change 1:

NOTE: Noise / bias removed for comparison purposes and no wind conditions.
Observe that the True Airspeed does not track GPS velocity (ground truth):
After Change 1

NOTE: Noise / bias removed for comparison purposes and no wind conditions.
Observe that the True Airspeed does track GPS velocity (ground truth):
Description of Change 2:
Enable user mapped JSBSim variables as inputs (as per previous) and add sensor airspeed system file as per previous. The system file includes a bias model related to sensor performance effects of angle of attack and side slip angle. The system files were not added to the Rascal or Malolo in order to prevent conflicts.
To Test:
Modify rascal or malolo JSBSim file and add new system sensor file:
<system file="px4_default_airspeed_sensor"/>
Modify rascal or malolo config file and add
<jsb_diff_pressure>px4/qbar-psf</jsb_diff_pressure>
OR
<jsb_diff_pressure>px4/biased-qbar-psf</jsb_diff_pressure>
to observe effects with high alpha or beta.