Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 0220e33

Browse files
author
astronomer80
committed
correct tongue with gripper
1 parent a52ae46 commit 0220e33

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/ciaoBraccio/ciaoBraccio.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ void loop() {
132132
moveBraccio = true;
133133
Ciao.writeResponse("rest", id, "WRISTR: " + String(m5));
134134
}
135-
//Command for the tongue of the braccio to open and close it (M6)
136-
else if (message.startsWith("TONGUE")) {
135+
//Command for the gripper of the braccio to open and close it (M6)
136+
else if (message.startsWith("GRIPPER")) {
137137
m6 = parseCommand(message, "VALUE");
138138
moveBraccio = true;
139-
Ciao.writeResponse("rest", id, "TONGUE: " + String(m6));
139+
Ciao.writeResponse("rest", id, "GRIPPER: " + String(m6));
140140
}
141141
//Command to say "Ciao"
142142
else if (message.startsWith("SAYCIAO")) {
@@ -197,7 +197,7 @@ void takesponge() {
197197
//I move arm towards the sponge
198198
Braccio.ServoMovement(20, 0, 90, 180, 180, 90, 0);
199199

200-
//the tongue takes the sponge
200+
//the gripper takes the sponge
201201
Braccio.ServoMovement(20, 0, 90, 180, 180, 90, 60 );
202202

203203
//up the sponge

examples/ciaoBraccio/ciaoBraccio.ino~

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22

33
This sketch uses the rest connector to receive command for the MCU from a rest client.
4+
Each command received will fire an action for the Braccio
45

56
REST command example:
67

0 commit comments

Comments
 (0)