Skip to content

Commit 8ab30be

Browse files
committed
Lower default speed to offer more torque margin
1 parent 23114e3 commit 8ab30be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arduino/splitflap/Splitflap/src/acceleration.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define ACCELERATION
2222

2323
namespace Acceleration {
24-
const PROGMEM uint16_t ACCEL_STEP_PERIODS[] = {1200, 20000, 7792, 6295, 5449, 4881, 4464, 4141, 3880, 3664, 3481, 3323, 3186, 3064, 2955, 2857, 2769, 2688, 2614, 2546, 2483, 2424, 2370, 2319, 2271, 2226, 2183, 2143, 2106, 2070, 2035, 2003, 1972, 1942, 1914, 1887, 1861, 1836, 1812, 1789, 1767, 1746, 1725, 1705, 1686, 1667, 1649, 1632, 1615, 1599, 1583, 1567, 1553, 1538, 1524, 1510, 1497, 1484, 1471, 1459, 1447, 1435, 1423, 1412, 1401, 1390, 1380, 1370, 1360, 1350, 1340, 1331, 1322, 1313, 1304, 1295, 1287, 1279, 1271, 1263, 1255, 1247, 1239, 1232, 1225, 1218, 1211, 1204};
25-
const uint8_t MAX_ACCEL_STEP = 87;
24+
const PROGMEM uint16_t ACCEL_STEP_PERIODS[] = {1600, 10000, 7920, 6800, 6064, 5530, 5119, 4790, 4518, 4288, 4090, 3918, 3766, 3631, 3510, 3400, 3300, 3208, 3123, 3045, 2973, 2906, 2843, 2783, 2728, 2676, 2626, 2580, 2535, 2493, 2453, 2415, 2379, 2344, 2310, 2278, 2248, 2218, 2190, 2163, 2137, 2111, 2087, 2063, 2040, 2018, 1997, 1976, 1956, 1937, 1918, 1900, 1882, 1864, 1848, 1831, 1815, 1800, 1784, 1770, 1755, 1741, 1727, 1714, 1701, 1688, 1675, 1663, 1651, 1639, 1628, 1617, 1606};
25+
const uint8_t MAX_ACCEL_STEP = 72;
2626
}
2727
#endif

arduino/splitflap/Splitflap/src/generate_acceleration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import subprocess
1919

20-
MIN_PERIOD_MICROS = 1200
21-
MAX_PERIOD_MICROS = 20000
20+
MIN_PERIOD_MICROS = 1600
21+
MAX_PERIOD_MICROS = 10000
2222
ACCEL_TIME_MICROS = 200000
23-
IDLE_PERIOD_MICROS = 1200
23+
IDLE_PERIOD_MICROS = 1600
2424

2525
_TEMPLATE = """/*
2626
Copyright 2020 Scott Bezek and the splitflap contributors

0 commit comments

Comments
 (0)