Baseline: tree as shared
This commit is contained in:
1679 files changed
+1024562
No files matched your search
@@ -0,0 +1,8 @@
|
||||
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]())
|
||||
Reference in new issue
Block a user