fix: joint flipping problem on the left

This commit is contained in:
Leni Aniva 2024-07-25 13:19:56 -07:00
parent 5db1f0ce79
commit b7ca30bc28
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 5 additions and 5 deletions

View File

@ -156,9 +156,9 @@ class Parameters(Model):
.add(self.wing_r1.assembly(parts, root_offset=9, **kwargs), name="wing_r1")
.add(self.wing_r2.assembly(parts, root_offset=7, **kwargs), name="wing_r2")
.add(self.wing_r3.assembly(parts, root_offset=6, **kwargs), name="wing_r3")
.add(self.wing_l1.assembly(parts, root_offset=7, **kwargs), name="wing_l1")
.add(self.wing_l2.assembly(parts, root_offset=8, **kwargs), name="wing_l2")
.add(self.wing_l3.assembly(parts, root_offset=9, **kwargs), name="wing_l3")
.add(self.wing_l1.assembly(parts, root_offset=19, **kwargs), name="wing_l1")
.add(self.wing_l2.assembly(parts, root_offset=20, **kwargs), name="wing_l2")
.add(self.wing_l3.assembly(parts, root_offset=21, **kwargs), name="wing_l3")
)
for tag in ["r1", "r2", "r3", "l1", "l2", "l3"]:
self.harness.add_root_joint_constraint(

View File

@ -325,7 +325,7 @@ class WingProfile(Model):
width=self.electronic_board.width,
centred=(True, True),
thickness=self.spacer_thickness,
flip_y=self.flip,
flip_y=False,#self.flip,
generate_reverse_tags=True,
)
@submodel(name="spacer-s0-shoulder-act")
@ -404,7 +404,7 @@ class WingProfile(Model):
(self.spacer_s0_electronic_mount().generate(), "electronic_mount"),
]:
top_tag, bot_tag = "top", "bot"
if self.flip:
if self.flip and tag.startswith("shoulder"):
top_tag, bot_tag = bot_tag, top_tag
(
result