diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b88194a..e00ef562 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -118,6 +118,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - When used from the preflight the name of the file changed to the name of a temporal, generating problems with the plot outputs, like pcb_print - Project options not preserved, i.e. set_text_variables failing + - Bottom QRs should be mirrored in the Y axis ## [1.6.3] - 2023-06-26 diff --git a/kibot/out_qr_lib.py b/kibot/out_qr_lib.py index c89230c1..14af13e8 100644 --- a/kibot/out_qr_lib.py +++ b/kibot/out_qr_lib.py @@ -177,6 +177,7 @@ class QR_LibOptions(BaseOptions): def qr_draw_fp(self, size, size_rect, center, qrc, negative, layer, do_sep=True): mod = [] + is_bottom = layer[0] == 'B' for y in range(size): for x in range(size): if qrc.get_module(x-negative, y-negative) ^ negative: @@ -186,6 +187,9 @@ class QR_LibOptions(BaseOptions): y_pos2 = round(y_pos+size_rect, 2) rect = [Symbol('fp_poly')] # fp_rect not in v5 pts = [Symbol('pts')] + if is_bottom: + y_pos = -y_pos + y_pos2 = -y_pos2 pts.append([Symbol('xy'), x_pos, y_pos]) pts.append([Symbol('xy'), x_pos, y_pos2]) pts.append([Symbol('xy'), x_pos2, y_pos2])