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:
14
fc.py
14
fc.py
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user