From d35a2003439ced2926252a227512086157e8def3 Mon Sep 17 00:00:00 2001 From: mennolodder <7911897+mennolodder@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:50:14 +0100 Subject: [PATCH] Added new static port information for TechnicLargeLinearMotor (#197) - Replaced with newer static port info. - Added source log - Add XLarge to Pull Request - Added TechnicMediumAngularMotorGrey --------- Co-authored-by: Menno Lodder Co-authored-by: T. Thiery --- .../Devices/TechnicLargeLinearMotor.cs | 18 ++--- .../Devices/TechnicMediumAngularMotorGrey.cs | 33 +++----- .../Devices/TechnicXLargeLinearMotor.cs | 81 +++++++++---------- 3 files changed, 56 insertions(+), 76 deletions(-) diff --git a/src/SharpBrick.PoweredUp/Devices/TechnicLargeLinearMotor.cs b/src/SharpBrick.PoweredUp/Devices/TechnicLargeLinearMotor.cs index cbaa3a2..58e97bf 100644 --- a/src/SharpBrick.PoweredUp/Devices/TechnicLargeLinearMotor.cs +++ b/src/SharpBrick.PoweredUp/Devices/TechnicLargeLinearMotor.cs @@ -16,8 +16,9 @@ public TechnicLargeLinearMotor(ILegoWirelessProtocol protocol, byte hubId, byte { } public IEnumerable GetStaticPortInfoMessages(Version softwareVersion, Version hardwareVersion, SystemType systemType) - => @" -0B-00-43-00-01-0F-06-1E-00-1F-00 + // Captured using TechnicLargeLinearMotor(HW: 0.0.0.1000 / SW: 0.0.0.1000) + => @" +0B-00-43-00-01-0F-05-1E-00-1F-00 07-00-43-00-02-0E-00 11-00-44-00-00-00-50-4F-57-45-52-00-00-00-00-00-00 0E-00-44-00-00-01-00-00-C8-C2-00-00-C8-42 @@ -41,9 +42,9 @@ public IEnumerable GetStaticPortInfoMessages(Version softwareVersion, Ve 08-00-44-00-02-05-08-08 0A-00-44-00-02-80-01-02-04-00 11-00-44-00-03-00-41-50-4F-53-00-00-00-00-00-00-00 -0E-00-44-00-03-01-00-00-B4-C3-00-00-B4-43 -0E-00-44-00-03-02-00-00-C8-C2-00-00-C8-42 -0E-00-44-00-03-03-00-00-B4-C3-00-00-B4-43 +0E-00-44-00-03-01-00-00-34-C3-00-00-33-43 +0E-00-44-00-03-02-00-00-48-C3-00-00-48-43 +0E-00-44-00-03-03-00-00-34-C3-00-00-33-43 0A-00-44-00-03-04-44-45-47-00 08-00-44-00-03-05-08-08 0A-00-44-00-03-80-01-01-03-00 @@ -54,12 +55,5 @@ public IEnumerable GetStaticPortInfoMessages(Version softwareVersion, Ve 0A-00-44-00-04-04-50-43-54-00 08-00-44-00-04-05-08-08 0A-00-44-00-04-80-01-00-01-00 -11-00-44-00-05-00-43-41-4C-49-42-00-00-00-00-00-00 -0E-00-44-00-05-01-00-00-00-00-00-00-00-44 -0E-00-44-00-05-02-00-00-00-00-00-00-C8-42 -0E-00-44-00-05-03-00-00-00-00-00-00-00-44 -0A-00-44-00-05-04-52-41-57-00 -08-00-44-00-05-05-00-00 -0A-00-44-00-05-80-03-01-03-00 ".Trim().Split("\n").Select(s => BytesStringUtil.StringToData(s)); } diff --git a/src/SharpBrick.PoweredUp/Devices/TechnicMediumAngularMotorGrey.cs b/src/SharpBrick.PoweredUp/Devices/TechnicMediumAngularMotorGrey.cs index f743031..07d3940 100644 --- a/src/SharpBrick.PoweredUp/Devices/TechnicMediumAngularMotorGrey.cs +++ b/src/SharpBrick.PoweredUp/Devices/TechnicMediumAngularMotorGrey.cs @@ -17,49 +17,42 @@ public TechnicMediumAngularMotorGrey(ILegoWirelessProtocol protocol, byte hubId, public IEnumerable GetStaticPortInfoMessages(Version softwareVersion, Version hardwareVersion, SystemType systemType) => @" -0B-00-43-00-01-0F-06-0E-00-0F-00 +0B-00-43-00-01-0F-05-1E-00-1F-00 07-00-43-00-02-0E-00 11-00-44-00-00-00-50-4F-57-45-52-00-00-00-00-00-00 0E-00-44-00-00-01-00-00-C8-C2-00-00-C8-42 0E-00-44-00-00-02-00-00-C8-C2-00-00-C8-42 0E-00-44-00-00-03-00-00-C8-C2-00-00-C8-42 0A-00-44-00-00-04-50-43-54-00 -08-00-44-00-00-05-00-50 -0A-00-44-00-00-80-01-00-04-00 +08-00-44-00-00-05-00-10 +0A-00-44-00-00-80-01-00-01-00 11-00-44-00-01-00-53-50-45-45-44-00-00-00-00-00-00 0E-00-44-00-01-01-00-00-C8-C2-00-00-C8-42 0E-00-44-00-01-02-00-00-C8-C2-00-00-C8-42 0E-00-44-00-01-03-00-00-C8-C2-00-00-C8-42 0A-00-44-00-01-04-50-43-54-00 -08-00-44-00-01-05-30-70 +08-00-44-00-01-05-10-10 0A-00-44-00-01-80-01-00-04-00 11-00-44-00-02-00-50-4F-53-00-00-00-00-00-00-00-00 0E-00-44-00-02-01-00-00-B4-C3-00-00-B4-43 0E-00-44-00-02-02-00-00-C8-C2-00-00-C8-42 0E-00-44-00-02-03-00-00-B4-C3-00-00-B4-43 0A-00-44-00-02-04-44-45-47-00 -08-00-44-00-02-05-28-68 -0A-00-44-00-02-80-01-02-0B-00 +08-00-44-00-02-05-08-08 +0A-00-44-00-02-80-01-02-04-00 11-00-44-00-03-00-41-50-4F-53-00-00-00-00-00-00-00 0E-00-44-00-03-01-00-00-34-C3-00-00-33-43 0E-00-44-00-03-02-00-00-48-C3-00-00-48-43 0E-00-44-00-03-03-00-00-34-C3-00-00-33-43 0A-00-44-00-03-04-44-45-47-00 -08-00-44-00-03-05-32-72 +08-00-44-00-03-05-08-08 0A-00-44-00-03-80-01-01-03-00 -11-00-44-00-04-00-43-41-4C-49-42-00-00-00-00-00-00 -0E-00-44-00-04-01-00-00-00-00-00-00-61-45 +11-00-44-00-04-00-4C-4F-41-44-00-00-00-00-00-00-00 +0E-00-44-00-04-01-00-00-00-00-00-00-FE-42 0E-00-44-00-04-02-00-00-00-00-00-00-C8-42 -0E-00-44-00-04-03-00-00-00-00-00-00-61-45 -0A-00-44-00-04-04-43-41-4C-00 -08-00-44-00-04-05-00-00 -0A-00-44-00-04-80-02-01-05-00 -11-00-44-00-05-00-53-54-41-54-53-00-00-00-00-00-00 -0E-00-44-00-05-01-00-00-00-00-00-FF-7F-47 -0E-00-44-00-05-02-00-00-00-00-00-00-C8-42 -0E-00-44-00-05-03-00-00-00-00-00-FF-7F-47 -0A-00-44-00-05-04-4D-49-4E-00 -08-00-44-00-05-05-00-00 -0A-00-44-00-05-80-0E-01-05-00 +0E-00-44-00-04-03-00-00-00-00-00-00-FE-42 +0A-00-44-00-04-04-50-43-54-00 +08-00-44-00-04-05-08-08 +0A-00-44-00-04-80-01-00-01-00 ".Trim().Split("\n").Select(s => BytesStringUtil.StringToData(s)); } diff --git a/src/SharpBrick.PoweredUp/Devices/TechnicXLargeLinearMotor.cs b/src/SharpBrick.PoweredUp/Devices/TechnicXLargeLinearMotor.cs index 2ed89e6..ec0db2c 100644 --- a/src/SharpBrick.PoweredUp/Devices/TechnicXLargeLinearMotor.cs +++ b/src/SharpBrick.PoweredUp/Devices/TechnicXLargeLinearMotor.cs @@ -17,49 +17,42 @@ public TechnicXLargeLinearMotor(ILegoWirelessProtocol protocol, byte hubId, byte public IEnumerable GetStaticPortInfoMessages(Version softwareVersion, Version hardwareVersion, SystemType systemType) => @" -0B-00-43-02-01-0F-06-1E-00-1F-00 -07-00-43-02-02-0E-00 -11-00-44-02-00-00-50-4F-57-45-52-00-00-00-00-00-00 -0E-00-44-02-00-01-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-00-02-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-00-03-00-00-C8-C2-00-00-C8-42 -0A-00-44-02-00-04-50-43-54-00 -08-00-44-02-00-05-00-10 -0A-00-44-02-00-80-01-00-01-00 -11-00-44-02-01-00-53-50-45-45-44-00-00-00-00-00-00 -0E-00-44-02-01-01-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-01-02-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-01-03-00-00-C8-C2-00-00-C8-42 -0A-00-44-02-01-04-50-43-54-00 -08-00-44-02-01-05-10-10 -0A-00-44-02-01-80-01-00-04-00 -11-00-44-02-02-00-50-4F-53-00-00-00-00-00-00-00-00 -0E-00-44-02-02-01-00-00-B4-C3-00-00-B4-43 -0E-00-44-02-02-02-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-02-03-00-00-B4-C3-00-00-B4-43 -0A-00-44-02-02-04-44-45-47-00 -08-00-44-02-02-05-08-08 -0A-00-44-02-02-80-01-02-04-00 -11-00-44-02-03-00-41-50-4F-53-00-00-00-00-00-00-00 -0E-00-44-02-03-01-00-00-B4-C3-00-00-B4-43 -0E-00-44-02-03-02-00-00-C8-C2-00-00-C8-42 -0E-00-44-02-03-03-00-00-B4-C3-00-00-B4-43 -0A-00-44-02-03-04-44-45-47-00 -08-00-44-02-03-05-08-08 -0A-00-44-02-03-80-01-01-03-00 -11-00-44-02-04-00-4C-4F-41-44-00-00-00-00-00-00-00 -0E-00-44-02-04-01-00-00-00-00-00-00-FE-42 -0E-00-44-02-04-02-00-00-00-00-00-00-C8-42 -0E-00-44-02-04-03-00-00-00-00-00-00-FE-42 -0A-00-44-02-04-04-50-43-54-00 -08-00-44-02-04-05-08-08 -0A-00-44-02-04-80-01-00-01-00 -11-00-44-02-05-00-43-41-4C-49-42-00-00-00-00-00-00 -0E-00-44-02-05-01-00-00-00-00-00-00-00-44 -0E-00-44-02-05-02-00-00-00-00-00-00-C8-42 -0E-00-44-02-05-03-00-00-00-00-00-00-00-44 -0A-00-44-02-05-04-52-41-57-00 -08-00-44-02-05-05-00-00 -0A-00-44-02-05-80-03-01-03-00 +0B-00-43-00-01-0F-05-1E-00-1F-00 +07-00-43-00-02-0E-00 +11-00-44-00-00-00-50-4F-57-45-52-00-00-00-00-00-00 +0E-00-44-00-00-01-00-00-C8-C2-00-00-C8-42 +0E-00-44-00-00-02-00-00-C8-C2-00-00-C8-42 +0E-00-44-00-00-03-00-00-C8-C2-00-00-C8-42 +0A-00-44-00-00-04-50-43-54-00 +08-00-44-00-00-05-00-10 +0A-00-44-00-00-80-01-00-01-00 +11-00-44-00-01-00-53-50-45-45-44-00-00-00-00-00-00 +0E-00-44-00-01-01-00-00-C8-C2-00-00-C8-42 +0E-00-44-00-01-02-00-00-C8-C2-00-00-C8-42 +0E-00-44-00-01-03-00-00-C8-C2-00-00-C8-42 +0A-00-44-00-01-04-50-43-54-00 +08-00-44-00-01-05-10-10 +0A-00-44-00-01-80-01-00-04-00 +11-00-44-00-02-00-50-4F-53-00-00-00-00-00-00-00-00 +0E-00-44-00-02-01-00-00-B4-C3-00-00-B4-43 +0E-00-44-00-02-02-00-00-C8-C2-00-00-C8-42 +0E-00-44-00-02-03-00-00-B4-C3-00-00-B4-43 +0A-00-44-00-02-04-44-45-47-00 +08-00-44-00-02-05-08-08 +0A-00-44-00-02-80-01-02-04-00 +11-00-44-00-03-00-41-50-4F-53-00-00-00-00-00-00-00 +0E-00-44-00-03-01-00-00-34-C3-00-00-33-43 +0E-00-44-00-03-02-00-00-48-C3-00-00-48-43 +0E-00-44-00-03-03-00-00-34-C3-00-00-33-43 +0A-00-44-00-03-04-44-45-47-00 +08-00-44-00-03-05-08-08 +0A-00-44-00-03-80-01-01-03-00 +11-00-44-00-04-00-4C-4F-41-44-00-00-00-00-00-00-00 +0E-00-44-00-04-01-00-00-00-00-00-00-FE-42 +0E-00-44-00-04-02-00-00-00-00-00-00-C8-42 +0E-00-44-00-04-03-00-00-00-00-00-00-FE-42 +0A-00-44-00-04-04-50-43-54-00 +08-00-44-00-04-05-08-08 +0A-00-44-00-04-80-01-00-01-00 ".Trim().Split("\n").Select(s => BytesStringUtil.StringToData(s)); }