Skip to content

Sub: correct setting of MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE #30169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

peterbarker
Copy link
Contributor

we only want to be present and enabled if there is actually a depth sensor on board. Otherwise we can be present and enabled but never healthy when we don't have a depth sensor

Copy link
Contributor

@Hwurzburg Hwurzburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my board

@peterbarker
Copy link
Contributor Author

Needs @Williangalvani to approve

Copy link
Contributor

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is a pre-existing thing, can we get rid of these comments?
They are misleading, the baros we really care about are the external ones.

Thanks!

I see other weird stuff on this file..... but that is a "me" problem!

@@ -41,14 +41,16 @@ void GCS_Sub::update_vehicle_sensor_status_flags()
}

// override the parent class's values for ABSOLUTE_PRESSURE to
// only check internal barometer:
// only honour water-pressure sensors
control_sensors_present &= ~MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE; // check the internal barometer only
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
control_sensors_present &= ~MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE; // check the internal barometer only
control_sensors_present &= ~MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

we only want to be present and enabled if there is actually a depth sensor on board.  Otherwise we can be present and enabled but never healthy when we don't have a depth sensor
@peterbarker peterbarker force-pushed the pr/sub-pressure-sensor-fix branch from c990351 to 3389075 Compare May 29, 2025 01:26
@peterbarker peterbarker merged commit 4803bc1 into ArduPilot:master May 29, 2025
65 checks passed
@peterbarker peterbarker deleted the pr/sub-pressure-sensor-fix branch May 30, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants