Skip to content

Adding Support for New Damiao Motor: DM-J6248P-2EC #68

Description

@yosh617

Describe the feature you want

I am planning to add support for the following Damiao motors:

  • DM-J6248P-2EC

(Other models are also under consideration)

I have a couple of questions about how to correctly integrate new motors into OpenArm.

1. Files that need to be modified

From what I understand, when adding a new motor, I only need to add the parameters to:

include/openarm/damiao_motor/dm_motor_constants.hpp

And I do not need to modify the CAN interface or other lower-level communication code.
Is this understanding correct?

2. Assigning new MotorType values

I see that the current MotorType enum uses values from 0 to 12.

When adding new motors:
How should I assign new MotorType numbers?

Is there any rule or recommended ordering?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions