Skip to content

refactor(liquid-lens): convert to driver#449

Draft
fouge wants to merge 1 commit intomainfrom
fouge/liquid-lens-zephyr-comp
Draft

refactor(liquid-lens): convert to driver#449
fouge wants to merge 1 commit intomainfrom
fouge/liquid-lens-zephyr-comp

Conversation

@fouge
Copy link
Copy Markdown
Collaborator

@fouge fouge commented Jan 16, 2026

convert liquid lens source into zephyr driver

fixes ORBS-936

convert liquid lens source into zephyr driver

Signed-off-by: Cyril Fougeray <cyril.fougeray@toolsforhumanity.com>
@AlexKaravaev
Copy link
Copy Markdown
Contributor

@codex review

@AlexKaravaev
Copy link
Copy Markdown
Contributor

@fouge this potentially can improve our focus settling time on ir eye right?

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c57f9bc84d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +139 to +140
const uint32_t vrefint_mv = 1212;
return (uint32_t)(vrefint_mv * ADC_MAX_VALUE) / vrefint_raw;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore calibrated VREF conversion in control loop

The new get_vref_mv_from_raw() path now derives VREF from a hardcoded typical 1.212V constant, which drops the board/hardware-specific calibration previously used for this current feedback path. On units where VREFINT differs from the typical value (or on Pearl EV5 where a fixed calibrated VREF was used), the measured lens current becomes biased, so the PI controller will settle at the wrong physical current and can shift focus behavior across devices. Please use the existing calibrated conversion source instead of this generic approximation.

Useful? React with 👍 / 👎.

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