Seperating mapcompile into files.

This commit is contained in:
2025-06-23 14:02:32 -05:00
parent 344aaa7e4f
commit be5e972b32
6 changed files with 231 additions and 210 deletions

View File

@ -0,0 +1,5 @@
def floatToFixed248(value):
# Converts a float to the fixed248_t used internally.
high24 = int(value) & 0xFFFFFF
low8 = int((value * 256.0 - high24) * 256.0) & 0xFF
return (high24 << 8) | low8