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

Send normaliserte verdier for batteristatus #1

Closed
pb123456 opened this issue Dec 15, 2020 · 0 comments
Closed

Send normaliserte verdier for batteristatus #1

pb123456 opened this issue Dec 15, 2020 · 0 comments

Comments

@pb123456
Copy link

Hvis du sender en status på batteriet, f.eks. fra 0 til 100%, er dette enklere å tolke enn VDD/batterispenning som sendes i dag. Dette er et 3,6V batteri, så du kan normalisere med dette, dvs. VDD/3600, eller Math.Min(VDD/3600.0, 1.0) for å være sikker på å være mellom 0 og 1.

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

No branches or pull requests

1 participant