dashboard/core/accelerometer.py
Showing 2 of 2 total issues
Function compass
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def compass(self): while True: self.update() mag = self.mag declinacion = -4.14
- Read upRead up
Function need_reset
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def need_reset(self): if(datetime.now() > (self.timer + timedelta(seconds=3))): self.timer = datetime.now() v_config = VarConfigModel.query.get(1) if v_config.var_value == "1":
- Read upRead up