mohan-bee/flight-controller-v2
A 64 mm STM32F405 flight-controller PCB with ICM-42688 IMU, SPI flash, USB-C/ESD, battery buck and 3.3 V regulation, four motor outputs, service I/O, and PETG standoff mounting hardware.
- Version
- 0.1.0
- License
- ISC
- Stars
- 0
tools/package-cam.py
import zipfile
from pathlib import Path
release=Path(__file__).resolve().parents[1]/'manufacturing/jlcpcb'
files=['F_Cu.gbr','In1_Cu.gbr','In2_Cu.gbr','B_Cu.gbr',
'F_Mask.gbr','B_Mask.gbr','F_SilkScreen.gbr','B_SilkScreen.gbr',
'F_Paste.gbr','B_Paste.gbr','Edge_Cuts.gbr','drill-L1-L4.drl','drill_npth.drl']
with zipfile.ZipFile(release/'raw-gerbers.zip') as source:
assert set(files)<=set(source.namelist())
with zipfile.ZipFile(release/'fabrication.zip','w',zipfile.ZIP_DEFLATED) as output:
for name in files:output.writestr(name,source.read(name))
print('Packaged four-layer tscircuit CAM, without automatic CSV drafts or auxiliary fabrication notes.')