-
Notifications
You must be signed in to change notification settings - Fork 18.8k
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
Sub: correct setting of MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE #30169
Conversation
There was a problem hiding this 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
Needs @Williangalvani to approve |
There was a problem hiding this 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!
ArduSub/GCS_Sub.cpp
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
control_sensors_present &= ~MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE; // check the internal barometer only | |
control_sensors_present &= ~MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE; |
There was a problem hiding this comment.
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
c990351
to
3389075
Compare
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