Skip to content
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

Flying over a cube breaks PX4 terrain distance estimator #14

Open
timkondratiev opened this issue Mar 15, 2023 · 2 comments
Open

Flying over a cube breaks PX4 terrain distance estimator #14

timkondratiev opened this issue Mar 15, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@timkondratiev
Copy link
Member

timkondratiev commented Mar 15, 2023

Same for spawning a cube below a flying drone or removing a cube.

Topic /mavros/altitude displays sudden change in terrain distance and then nan:

header: 
  seq: 616
  stamp: 
    secs: 62
    nsecs:  40000000
  frame_id: "map"
monotonic: 489.8117980957031
amsl: 489.8117980957031
local: 2.0768721103668213
relative: 2.0768721103668213
terrain: nan
bottom_clearance: nan
@timkondratiev timkondratiev added this to the v1.4 milestone Mar 15, 2023
@timkondratiev timkondratiev added the bug Something isn't working label Mar 15, 2023
@okalachev
Copy link
Member

okalachev commented Mar 28, 2023

I may confirm this bug, but it's unclear so far, why PX4 acts this way, if the rangefinder's value changes sharply.

Screenshot 2023-03-28 at 15 51 35

okalachev added a commit to CopterExpress/clover that referenced this issue Apr 10, 2023
…over_vm#14

`altitude` mode takes the current altitude from the estimator
`range` mode takes the current altitude from a simple range topic
@okalachev
Copy link
Member

Addressed adding a terrain_frame_mode parameter. If set to range, then estimator's altitude is ignored, and the simple rangefinder topic's value is used instead.

okalachev added a commit to CopterExpress/clover that referenced this issue Apr 10, 2023
…over_vm#14

`altitude` mode takes the current altitude from the estimator
`range` mode takes the current altitude from a simple range topic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants