Skip to content

[BUG] Passing a new target to move() is sometimes ignored #404

Closed
@sylque

Description

@sylque

In BLDCMotor::move(), if you pass a new target as a parameter, it is sometimes ignored.

This is due to this code being at the wrong place. I think it should be placed at the very top of the function.

Indeed, if either (motion_cnt++ < motion_downsample) or (!enabled), the new_target parameter is ignored.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions