Repository navigation
EV bridge: stop vehicle_visual_odometry when landed or OpenVINS unhealthy (ODL-147, refs ODL-146) - #59
Merged
Conversation
…(ODL-147) EvPublishGate: no vehicle_visual_odometry while landed / maybe_landed / disarmed, or when the OV sample gap, local_position age, odomimu position variance or OV speed is out of bounds (ROS params, conservative defaults from the 2026-11-24 EV flights). Resumes after 1 s healthy and airborne with reset_counter bumped; translation re-aligned on the ground every sample. EV stays opt-in; GPS-only runs never start the bridge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refs ODL-147 (EV unsafe after landing) and ODL-146 (alignment yaw ~15°, diagnose only; not fixed here). Context: ODL-116 comments 613/614.
What
vision_px4_bridgenow gatesvehicle_visual_odometrywith a pure, unit-testedEvPublishGate. It does not publish when:landed/maybe_landed(/fmu/out/vehicle_land_detected) or the vehicle is disarmed (/fmu/out/vehicle_status_v1), or no land/arming state has arrived yet;max_input_gap_s(0.5 s) orvehicle_local_positionis older thanmax_local_position_age_s(0.5 s);max_position_variance(1.0 m²);max_speed_mps(15 m/s).It resumes only after
resume_healthy_s(1.0 s) of continuous healthy, airborne samples, and bumpsreset_counter. While on the ground it re-aligns the translation every sample through the existing_try_alignpath (yaw kept), so OV ground drift isn't carried into the next takeoff. Setting amax_*to 0 or less disables that check, andev_gate_enable:=falserestores the old behaviour. Warnings are logged once per reason change.There is no feature-count check, because OpenVINS odomimu doesn't publish one.
Defaults come from the 2026-11-24 EV bags:
Unchanged
EKF2_EV_CTRLdefault stays 0, and the bridge only runs in the opt-in EV path.Tests
test_ev_publish_gate.py, including a real-node test for ground → air resume. It's added to therun-regression.shpytest list.pytest ros2_ws/src: 457 passed, 6 xfailed.The verification flight result will be posted on ODL-147.