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 __________ */ /**