fix: joint flipping problem on the left
This commit is contained in:
parent
5db1f0ce79
commit
b7ca30bc28
|
@ -156,9 +156,9 @@ class Parameters(Model):
|
||||||
.add(self.wing_r1.assembly(parts, root_offset=9, **kwargs), name="wing_r1")
|
.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_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_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_l1.assembly(parts, root_offset=19, **kwargs), name="wing_l1")
|
||||||
.add(self.wing_l2.assembly(parts, root_offset=8, **kwargs), name="wing_l2")
|
.add(self.wing_l2.assembly(parts, root_offset=20, **kwargs), name="wing_l2")
|
||||||
.add(self.wing_l3.assembly(parts, root_offset=9, **kwargs), name="wing_l3")
|
.add(self.wing_l3.assembly(parts, root_offset=21, **kwargs), name="wing_l3")
|
||||||
)
|
)
|
||||||
for tag in ["r1", "r2", "r3", "l1", "l2", "l3"]:
|
for tag in ["r1", "r2", "r3", "l1", "l2", "l3"]:
|
||||||
self.harness.add_root_joint_constraint(
|
self.harness.add_root_joint_constraint(
|
||||||
|
|
|
@ -325,7 +325,7 @@ class WingProfile(Model):
|
||||||
width=self.electronic_board.width,
|
width=self.electronic_board.width,
|
||||||
centred=(True, True),
|
centred=(True, True),
|
||||||
thickness=self.spacer_thickness,
|
thickness=self.spacer_thickness,
|
||||||
flip_y=self.flip,
|
flip_y=False,#self.flip,
|
||||||
generate_reverse_tags=True,
|
generate_reverse_tags=True,
|
||||||
)
|
)
|
||||||
@submodel(name="spacer-s0-shoulder-act")
|
@submodel(name="spacer-s0-shoulder-act")
|
||||||
|
@ -404,7 +404,7 @@ class WingProfile(Model):
|
||||||
(self.spacer_s0_electronic_mount().generate(), "electronic_mount"),
|
(self.spacer_s0_electronic_mount().generate(), "electronic_mount"),
|
||||||
]:
|
]:
|
||||||
top_tag, bot_tag = "top", "bot"
|
top_tag, bot_tag = "top", "bot"
|
||||||
if self.flip:
|
if self.flip and tag.startswith("shoulder"):
|
||||||
top_tag, bot_tag = bot_tag, top_tag
|
top_tag, bot_tag = bot_tag, top_tag
|
||||||
(
|
(
|
||||||
result
|
result
|
||||||
|
|
Loading…
Reference in New Issue