diff options
author | jaseg <git@jaseg.de> | 2023-04-29 23:26:13 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-29 23:26:13 +0200 |
commit | fb61b4fa12a5662f92d0dbaa8314686656e97386 (patch) | |
tree | 9d640eb904383c0fc92de70749f208f2d15fcd9c /gerbonara/cad/protoserve.py | |
parent | e4a459368c1befe89c48af1b7721f490df17d001 (diff) | |
download | gerbonara-fb61b4fa12a5662f92d0dbaa8314686656e97386.tar.gz gerbonara-fb61b4fa12a5662f92d0dbaa8314686656e97386.tar.bz2 gerbonara-fb61b4fa12a5662f92d0dbaa8314686656e97386.zip |
protoserve: Adjust margins and clearance defaults
Diffstat (limited to 'gerbonara/cad/protoserve.py')
-rw-r--r-- | gerbonara/cad/protoserve.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbonara/cad/protoserve.py b/gerbonara/cad/protoserve.py index 8512ca5..4a10acc 100644 --- a/gerbonara/cad/protoserve.py +++ b/gerbonara/cad/protoserve.py @@ -99,7 +99,8 @@ def deserialize(obj, unit): via_drill = mil(float(obj['via_hole_dia'])) via_dia = mil(float(obj['via_dia'])) trace_width = mil(float(obj['trace_width'])) - return pb.PatternProtoArea(pitch, pitch, pb.PoweredProto(pitch, hole_dia, clearance, via_size=via_drill, power_pad_dia=via_dia, trace_width=trace_width, unit=unit), unit=unit) + # Force 1mm margin to avoid shorts when adjacent to planes such as that one in the RF THT proto. + return pb.PatternProtoArea(pitch, pitch, pb.PoweredProto(pitch, hole_dia, clearance, via_size=via_drill, power_pad_dia=via_dia, trace_width=trace_width, unit=unit), margin=1.0, unit=unit) case 'flower': pitch = mil(float(obj.get('pitch', 2.54))) |