Use barometer data for altitude hold #97
Draft
+21
−10
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.
Related to #89
Implement the use of barometer data for altitude/height hold.
Process Barometer Measurements
processBarometerMeasurements
function insensors_mpu6050_hm5883L_ms5611.c
to process barometer data from the MS5611 sensor.sensorsSetupSlaveRead
function to configure the MS5611 sensor for reading pressure and temperature data.sensorsTask
function to callprocessBarometerMeasurements
when barometer data is available.Altitude Estimation
positionEstimateInternal
function inposition_estimator_altitude.c
to incorporate barometer data for altitude estimation.baroAlpha
for barometer data in theselfState_s
structure.Vertical Velocity Update
positionUpdateVelocityInternal
function inposition_estimator_altitude.c
to update the vertical velocity using barometer data.baroAlpha
for barometer data in theselfState_s
structure.Parameter Addition
baroAlpha
to theposEstAlt
parameter group inposition_estimator_altitude.c
.