Skip to content

Discard zero XYZ Livox returns - #106

Merged
michalpelka merged 1 commit into
JanuszBedkowski:mainfrom
dlubom:codex/livox-zero-xyz-upstream
Dec 4, 2026
Merged

michalpelka merged 1 commit into
JanuszBedkowski:mainfrom
dlubom:codex/livox-zero-xyz-upstream

Conversation

@dlubom

@dlubom dlubom commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Drop exact (0, 0, 0) returns from Livox Cartesian High packets before buffering. If a chunk has no points left, write a valid empty LAZ with zero bounds.

Verified on the fork with synthetic mixed and all-zero packets and LASzip readback. Measurements and test reports.

@dlubom

dlubom commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Hi @michalpelka and @JanuszBedkowski this is our proposition base on real data observation and tests. We are open on yours change and tests suggestion.

@michalpelka

Copy link
Copy Markdown
Collaborator

I agree it is good idea, but it is two or three lines change and your AI started few refactors down the line!

This is probably regression caused by new firmware in Mid360. It used to mark invalid returns with zero ts in past - if so good catch.
Please rework it with minimizing the PR diff and I think we can merge it.

@dlubom

dlubom commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @michalpelka, sure, we’ll simplify the PR. Coding is cheap these days, so let’s use this code to show the idea and start the discussion. We have three questions:

  1. Should we add a config option to drop (0, 0, 0) points?
  2. If so, should it be on by default?
  3. Should we log per-head counts in the status file for points received, zero points, and points dropped? That could help us spot firmware issues or other unexpected behavior.

Let us know which parts you want to keep, and we’ll simplify the PR accordingly.

@michalpelka

Copy link
Copy Markdown
Collaborator

Let's fet rid of those entirely. There is no configuration. Maybe if you really want use Enviromental variables.

@dlubom
dlubom force-pushed the codex/livox-zero-xyz-upstream branch from 880c5b8 to 92a8e9c Compare December 4, 2026 17:40
@dlubom dlubom changed the title Filter zero XYZ Livox returns by default Discard zero XYZ Livox returns Dec 4, 2026
@dlubom
dlubom marked this pull request as ready for review December 4, 2026 17:44
@dlubom

dlubom commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@michalpelka done

@michalpelka
michalpelka merged commit 701d818 into JanuszBedkowski:main Dec 4, 2026
2 checks passed
@michalpelka

Copy link
Copy Markdown
Collaborator

Really, I need to add agents.md to this repo

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.

2 participants