Inscread plate strap size

Also fix mass printing on all objects

Signed-off-by: Arnaud Morin <arnaud.gfpv@mailops.fr>
This commit is contained in:
Arnaud Morin
2026-09-21 22:22:01 +02:00
parent e70d2abed2
commit e29f86fa70
9 changed files with 42 additions and 65 deletions

14
fc.py
View File

@@ -3,13 +3,7 @@
#
import cadquery as cq
# A flight controller is not a material, it is a stack: two boards, their
# spacers, and everything soldered to them. This models only the envelope, as
# one solid, so the density is FR4's -- bare PCB -- and the dense parts (FETs,
# inductors, connectors) stand in for the air between the boards. It lands the
# block at about 12 g, which is what a real 25.5 mm FC plus 4-in-1 ESC weighs.
PCB_DENSITY = 1.85e-3 # g/mm3, FR4
from frame_params import PCB_DENSITY
def fc():
@@ -76,8 +70,6 @@ if "show_object" not in globals(): # running outside CQ-editor
show_object(result)
if __name__ == "__main__":
print("fc %.2f g" % (result.val().Volume() * PCB_DENSITY))
v = result.val().Volume()
print("%-12s %.2f g" % ("fc", v * PCB_DENSITY))