REFACTOR: Split into modules (controller, models, and utils)

This commit is contained in:
2025-03-15 22:50:22 +01:00
parent 37e88f063e
commit 19934aa911
12 changed files with 34 additions and 38 deletions

2
utils/utils.py Normal file
View File

@@ -0,0 +1,2 @@
def mapped_value(value, in_min, in_max, out_min, out_max):
return (value - in_min) * (out_max - out_min) / (in_max - in_min) + out_min