Skip to content

Commit b2384df

Browse files
committed
Sampling every 50 instead of very 100 ms yields a smoother replay.
1 parent 0b7749e commit b2384df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/Braccio_Learn_and_Repeat/AppState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* CONSTANT
1919
**************************************************************************************/
2020

21-
static int const SAMPLE_BUF_SIZE = 6*100*2; /* 20 seconds. */
21+
static int const SAMPLE_BUF_SIZE = 6*200*2; /* 20 seconds. */
2222
static float const HOME_POS[6] = {157.5, 157.5, 157.5, 157.5, 157.5, 90.0};
2323

2424
/**************************************************************************************

examples/Braccio_Learn_and_Repeat/Braccio_Learn_and_Repeat.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ void setup()
2525

2626
void loop()
2727
{
28-
/* Only execute every 100 ms. */
28+
/* Only execute every 50 ms. */
2929
static auto prev = millis();
3030
auto const now = millis();
3131

32-
if ((now - prev) > 100)
32+
if ((now - prev) > 50)
3333
{
3434
prev = now;
3535
app.update(EventSource::TimerTick);

0 commit comments

Comments
 (0)