Refactor and clean up HK and Local Pool Modules

This commit is contained in:
2024-11-04 17:32:21 +01:00
parent e830cb5bdd
commit 97e92c0dd2
206 changed files with 3515 additions and 4957 deletions

View File

@ -0,0 +1,14 @@
#include "gyroL3gHelpers.h"
float l3gd20h::ctrlReg4ToSensitivity(uint8_t reg) {
bool fsH = reg & l3gd20h::SET_FS_1;
bool fsL = reg & l3gd20h::SET_FS_0;
if (not fsH and not fsL) {
return l3gd20h::SENSITIVITY_00;
} else if (not fsH and fsL) {
return l3gd20h::SENSITIVITY_01;
} else {
return l3gd20h::SENSITIVITY_11;
}
}