Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

9 lines
260 B
Mojo
Generated

def make_drive[num_motors: Int]() -> Int:
# The drive train must pair motors across an even motor count.
comptime assert num_motors % 2 == 0, "num_motors must be even"
return num_motors * 64
def main():
print("Drive slots:", make_drive[7]())