Skip to content

Commit

Permalink
Wheel joint type of 0 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonPacewic committed Jun 21, 2024
1 parent 5fcd7c1 commit ed9abe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def _addJointInstance(
signal.io = signal_pb2.IOType.OUTPUT
joint_instance.signal_reference = signal.info.GUID

if wheel.signalType != ExporterOptions.SignalType.PASSIVE:
if wheel.signalType == ExporterOptions.SignalType.CAN:
if wheel.signalType != SignalType.PASSIVE:
if wheel.signalType == SignalType.CAN:
signal.device_type = signal_pb2.DeviceType.CANBUS
elif wheel.signalType == ExporterOptions.SignalType.PWM:
elif wheel.signalType == SignalType.PWM:
signal.device_type = signal_pb2.DeviceType.PWM
else:
joint_instance.signal_reference = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from . import Materials, Components, Joints, JointHierarchy, PDMessage

from .Utilities import *
from .. import ExporterOptions
from ..ExporterOptions import ExporterOptions, ExportMode


class Parser:
Expand All @@ -38,9 +38,7 @@ def export(self) -> bool:
)

# set int to 0 in dropdown selection for dynamic
assembly_out.dynamic = (
self.exporterOptions.exportMode == ExporterOptions.ExportMode.ROBOT
)
assembly_out.dynamic = self.exporterOptions.exportMode == ExportMode.ROBOT

# Physical Props here when ready

Expand Down

0 comments on commit ed9abe4

Please sign in to comment.