From adda6b76ac049b667d6f065bafa6ad70f2709b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=B1=EC=A7=84=ED=98=B8?= <140678689+jinbaekho@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:34:47 +0900 Subject: [PATCH] =?UTF-8?q?G2=20=EC=84=9C=EB=B3=B4=EB=AA=A8=ED=84=B0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pingpong-ble/main/src/hw/CommandRunnerG2.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pingpong-ble/main/src/hw/CommandRunnerG2.ts b/pingpong-ble/main/src/hw/CommandRunnerG2.ts index f318737..37c839d 100644 --- a/pingpong-ble/main/src/hw/CommandRunnerG2.ts +++ b/pingpong-ble/main/src/hw/CommandRunnerG2.ts @@ -515,6 +515,11 @@ export class CommandRunnerG2 extends CommandRunnerBase { await this.sendAggregator(2, 0, 0, 0, 0, 0) } + setServoDegree = async (cubeID: number, degree: number): Promise => { + await this.enqueue(PingPongUtil.makeServoDegreeData(cubeID, degree)) + await sleepAsync(this.defaultDelay) + } + /** __________ G1 Sensor __________ */ /**