Skip to content

Commit

Permalink
ci(Wokwi): execute calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Feb 18, 2024
1 parent ddff5a4 commit 78a3641
Showing 1 changed file with 109 additions and 61 deletions.
170 changes: 109 additions & 61 deletions .wokwi/lucidgloves-prototype4+serial/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,74 +3,122 @@ version: 1
author: Leonid Meleshin

steps:
- wait-serial: "A0B0C0D0E0F2047G2047"
# Press calibration button
- set-control:
part-id: btn3
control: pressed
value: 1

# Press the 'A' button
- set-control:
part-id: btn1
control: pressed
value: 1
- wait-serial: "A0B0C0D0E0F2047G2047J"
# Flex all fingers to calibrate
- set-control:
part-id: pot-index
control: position
value: 1
- set-control:
part-id: pot-thumb
control: position
value: 1
- set-control:
part-id: pot-middle
control: position
value: 1
- set-control:
part-id: pot-ring
control: position
value: 1
- set-control:
part-id: pot-pinky
control: position
value: 1
- set-control:
part-id: pot-index
control: position
value: 0
- set-control:
part-id: pot-thumb
control: position
value: 0
- set-control:
part-id: pot-middle
control: position
value: 0
- set-control:
part-id: pot-ring
control: position
value: 0
- set-control:
part-id: pot-pinky
control: position
value: 0

# Press the 'B' button
- set-control:
part-id: btn2
control: pressed
value: 1
- wait-serial: "A0B0C0D0E0F2047G2047JK"
- wait-serial: "A0B0C0D0E0F2047G2047"

# Release the 'A' button
- set-control:
part-id: btn1
control: pressed
value: 0
- wait-serial: "A0B0C0D0E0F2047G2047K"
# Press the 'A' button
- set-control:
part-id: btn1
control: pressed
value: 1
- wait-serial: "A0B0C0D0E0F2047G2047J"

# Release the 'B' button
- set-control:
part-id: btn2
control: pressed
value: 0
- wait-serial: "A0B0C0D0E0F2047G2047"
# Press the 'B' button
- set-control:
part-id: btn2
control: pressed
value: 1
- wait-serial: "A0B0C0D0E0F2047G2047JK"

# Curl Index finger
- set-control:
part-id: pot-index
control: position
value: 1
- wait-serial: "A0B4095C0D0E0F2047G2047I" # I is for Trigger gesture
# Release the 'A' button
- set-control:
part-id: btn1
control: pressed
value: 0
- wait-serial: "A0B0C0D0E0F2047G2047K"

# Curl Thumb finger
- set-control:
part-id: pot-thumb
control: position
value: 1
- wait-serial: "A4095B4095C0D0E0F2047G2047MI" # M is for Pinch gesture
# Release the 'B' button
- set-control:
part-id: btn2
control: pressed
value: 0
- wait-serial: "A0B0C0D0E0F2047G2047"

# Curl Middle finger
- set-control:
part-id: pot-middle
control: position
value: 1
- wait-serial: "A4095B4095C4095D0E0F2047G2047MI"
# Curl Index finger
- set-control:
part-id: pot-index
control: position
value: 1
- wait-serial: "A0B4095C0D0E0F2047G2047I" # I is for Trigger gesture

# Curl Ring finger
- set-control:
part-id: pot-ring
control: position
value: 1
- wait-serial: "A4095B4095C4095D4095E0F2047G2047MI"
# Curl Thumb finger
- set-control:
part-id: pot-thumb
control: position
value: 1
- wait-serial: "A4095B4095C0D0E0F2047G2047MI" # M is for Pinch gesture

# Curl Pinky finger
- set-control:
part-id: pot-pinky
control: position
value: 1
- wait-serial: "A4095B4095C4095D4095E4095F2047G2047MIL" # L is for the Grab gesture
# Curl Middle finger
- set-control:
part-id: pot-middle
control: position
value: 1
- wait-serial: "A4095B4095C4095D0E0F2047G2047MI"

# Partially Release Thumb finger
- set-control:
part-id: pot-thumb
control: position
value: 0.25
- wait-serial: "A1024B4095C4095D4095E4095F2047G2047IL"
# Curl Ring finger
- set-control:
part-id: pot-ring
control: position
value: 1
- wait-serial: "A4095B4095C4095D4095E0F2047G2047MI"

# Curl Pinky finger
- set-control:
part-id: pot-pinky
control: position
value: 1
- wait-serial: "A4095B4095C4095D4095E4095F2047G2047MIL" # L is for the Grab gesture

# Partially Release Thumb finger
- set-control:
part-id: pot-thumb
control: position
value: 0.25
- wait-serial: "A1024B4095C4095D4095E4095F2047G2047IL"

0 comments on commit 78a3641

Please sign in to comment.