Skip to content

Bench: Add calibration for alarm var#606

Merged
ao-david merged 2 commits intomainfrom
calibrate-alarm
Jul 28, 2025
Merged

Bench: Add calibration for alarm var#606
ao-david merged 2 commits intomainfrom
calibrate-alarm

Conversation

@ao-david
Copy link
Member

This change adds the auto-calibration functionality to the alarm variable. This calibrates the alarm voltage, and alarm recovery voltage whenever the battery voltage is calibrated.

This also fixes an error, where calibrating voltages that are reading 0 returns an inf, or NaN result.

This change adds the auto-calibration functionality to the alarm variable. This calibrates the alarm voltage, and alarm recovery voltage whenever the battery voltage is calibrated.
@ao-david
Copy link
Member Author

This still needs to be tested.

This change rounds the values calculated as alarm voltage and recovery
to use integers instead as the netsender client may not support floats.
@ao-david
Copy link
Member Author

This still needs to be tested.

This has now been tested, and updated to use ints instead of floats.

@ao-david ao-david merged commit bb8c5a2 into main Jul 28, 2025
1 check passed
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