Skip to content

LEGO Technic Move hub - add servo/stepper support - #223

Draft
vicocz wants to merge 33 commits into
defaultfrom
local/lego-technic-move-servo
Draft

LEGO Technic Move hub - add servo/stepper support#223
vicocz wants to merge 33 commits into
defaultfrom
local/lego-technic-move-servo

Conversation

@vicocz

@vicocz vicocz commented May 11, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds non-PLAYVM servo support (and introduces stepper handling) for the LEGO Technic Move Hub’s C channel by switching to absolute-position commands when the channel is configured as a servo/stepper.

Changes:

  • Allow C channel to be configured as a servo in both PLAYVM and non-PLAYVM modes, and as a stepper in non-PLAYVM mode.
  • Configure port position reporting for stepper channels during connect setup.
  • Add dedicated output send paths for servo (GotoAbsPosition) and stepper (relative target based on current position) on channel C.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/TechnicMoveDevice.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment on lines +95 to +97
// stepper channels accumulate the input value as a step coefficient
_ when channel >= CHANNEL_A && channel <= CHANNEL_C && GetOutputType(channel) == ChannelOutputType.StepperMotor
=> _outputValues.AccumulateOutput(channel, (Half)validatedValue),
@vicocz vicocz changed the title LEGO Technic Move hub - add servo support for C channel LEGO Technic Move hub - add servo/stepper support May 28, 2026
@vicocz
vicocz requested a review from Copilot July 3, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines +454 to +456
var targetPosition = _calibratedZeroAngles[channel]
+ (int)value * ChannelConfigs.Get(channel).StepperAngle;

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants