Skip to content

[BUG] Custom control mode cannot set a target through commander #540

Description

@askuric

when
target setting is done through commander in custom mode the target is actually never updated.
Because the target is parsed based on the motion control mode, and custom I forgot to add.

Should add this:

switch(motor->controller){
    case MotionControlType::custom: // this here
    case MotionControlType::angle_nocascade:
    case MotionControlType::torque: // setting torque target
      torque = atof(strtok (user_cmd, separator));
      motor->target = torque;
      break;

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions