Skip to content

Commit fa97865

Browse files
committed
Fine tuning ...
1 parent 4a8e9ce commit fa97865

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/Controlling_Manually_Braccio/AppState.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,25 +131,25 @@ State * WristState::handle_OnEnter()
131131

132132
State * WristState::handle_OnUp()
133133
{
134-
wristRoll.move().to(wristRoll.position() + 5.0f);
134+
wristPitch.move().to(wristPitch.position() + 5.0f);
135135
return this;
136136
}
137137

138138
State * WristState::handle_OnDown()
139139
{
140-
wristRoll.move().to(wristRoll.position() - 5.0f);
140+
wristPitch.move().to(wristPitch.position() - 5.0f);
141141
return this;
142142
}
143143

144144
State * WristState::handle_OnLeft()
145145
{
146-
wristPitch.move().to(wristPitch.position() + 5.0f);
146+
wristRoll.move().to(wristRoll.position() + 10.0f);
147147
return this;
148148
}
149149

150150
State * WristState::handle_OnRight()
151151
{
152-
wristPitch.move().to(wristPitch.position() - 5.0f);
152+
wristRoll.move().to(wristRoll.position() - 10.0f);
153153
return this;
154154
}
155155

examples/Controlling_Manually_Braccio/Controlling_Manually_Braccio.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void setup()
5555
if (Braccio.begin(directionScreen))
5656
{
5757
/* Configure Braccio. */
58-
Braccio.speed(speed_grade_t(150)/*MEDIUM*/);
58+
Braccio.speed(speed_grade_t(120)/*MEDIUM*/);
5959
/* Move to home position. */
6060
Braccio.moveTo(HOME_POS[0], HOME_POS[1], HOME_POS[2], HOME_POS[3], HOME_POS[4], HOME_POS[5]);
6161
delay(500);
@@ -84,11 +84,11 @@ void loop()
8484
}
8585
}
8686

87-
/* Execute every 100 ms. */
87+
/* Execute every 50 ms. */
8888
{
8989
static auto prev = millis();
9090
auto const now = millis();
91-
if ((now - prev) > 100)
91+
if ((now - prev) > 50)
9292
{
9393
prev = now;
9494

0 commit comments

Comments
 (0)