Skip to content

Fix ADC value truncation: remove erroneous >>= 2 bit shift#6

Open
kaklik wants to merge 1 commit into
AIRDOS03Bfrom
fix/adc-value-truncation
Open

Fix ADC value truncation: remove erroneous >>= 2 bit shift#6
kaklik wants to merge 1 commit into
AIRDOS03Bfrom
fix/adc-value-truncation

Conversation

@kaklik

@kaklik kaklik commented Jun 27, 2026

Copy link
Copy Markdown
Member

Raw ADC values were right-shifted by 2 bits before being stored, silently reducing energy resolution to 14 bits despite the ADC hardware delivering full 16-bit values. Removed from both FW variants (USTDFF and MAVLink) so event_channel and histogram receive the full unmodified ADC output.

Raw ADC values were right-shifted by 2 bits before being stored,
silently reducing energy resolution to 14 bits despite the ADC
hardware delivering full 16-bit values. Removed from both FW variants
(USTDFF and MAVLink) so event_channel and histogram receive the full
unmodified ADC output.
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.

1 participant