SHARE
TWEET

Marlin speed_lookuptable.h file w/24MHz table added

a guest Jan 3rd, 2018 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Marlin 3D Printer Firmware
  3.  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4.  *
  5.  * Based on Sprinter and grbl.
  6.  * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7.  *
  8.  * This program is free software: you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation, either version 3 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  20.  *
  21.  */
  22.  
  23. #ifndef SPEED_LOOKUPTABLE_H
  24. #define SPEED_LOOKUPTABLE_H
  25.  
  26. #include "MarlinConfig.h"
  27.  
  28. #if F_CPU == 16000000
  29.  
  30.   const uint16_t speed_lookuptable_fast[256][2] PROGMEM = {
  31.     { 62500, 55556}, { 6944, 3268}, { 3676, 1176}, { 2500, 607}, { 1893, 369}, { 1524, 249}, { 1275, 179}, { 1096, 135},
  32.     { 961, 105}, { 856, 85}, { 771, 69}, { 702, 58}, { 644, 49}, { 595, 42}, { 553, 37}, { 516, 32},
  33.     { 484, 28}, { 456, 25}, { 431, 23}, { 408, 20}, { 388, 19}, { 369, 16}, { 353, 16}, { 337, 14},
  34.     { 323, 13}, { 310, 11}, { 299, 11}, { 288, 11}, { 277, 9}, { 268, 9}, { 259, 8}, { 251, 8},
  35.     { 243, 8}, { 235, 7}, { 228, 6}, { 222, 6}, { 216, 6}, { 210, 6}, { 204, 5}, { 199, 5},
  36.     { 194, 5}, { 189, 4}, { 185, 4}, { 181, 4}, { 177, 4}, { 173, 4}, { 169, 4}, { 165, 3},
  37.     { 162, 3}, { 159, 4}, { 155, 3}, { 152, 3}, { 149, 2}, { 147, 3}, { 144, 3}, { 141, 2},
  38.     { 139, 3}, { 136, 2}, { 134, 2}, { 132, 3}, { 129, 2}, { 127, 2}, { 125, 2}, { 123, 2},
  39.     { 121, 2}, { 119, 1}, { 118, 2}, { 116, 2}, { 114, 1}, { 113, 2}, { 111, 2}, { 109, 1},
  40.     { 108, 2}, { 106, 1}, { 105, 2}, { 103, 1}, { 102, 1}, { 101, 1}, { 100, 2}, { 98, 1},
  41.     { 97, 1}, { 96, 1}, { 95, 2}, { 93, 1}, { 92, 1}, { 91, 1}, { 90, 1}, { 89, 1},
  42.     { 88, 1}, { 87, 1}, { 86, 1}, { 85, 1}, { 84, 1}, { 83, 0}, { 83, 1}, { 82, 1},
  43.     { 81, 1}, { 80, 1}, { 79, 1}, { 78, 0}, { 78, 1}, { 77, 1}, { 76, 1}, { 75, 0},
  44.     { 75, 1}, { 74, 1}, { 73, 1}, { 72, 0}, { 72, 1}, { 71, 1}, { 70, 0}, { 70, 1},
  45.     { 69, 0}, { 69, 1}, { 68, 1}, { 67, 0}, { 67, 1}, { 66, 0}, { 66, 1}, { 65, 0},
  46.     { 65, 1}, { 64, 1}, { 63, 0}, { 63, 1}, { 62, 0}, { 62, 1}, { 61, 0}, { 61, 1},
  47.     { 60, 0}, { 60, 0}, { 60, 1}, { 59, 0}, { 59, 1}, { 58, 0}, { 58, 1}, { 57, 0},
  48.     { 57, 1}, { 56, 0}, { 56, 0}, { 56, 1}, { 55, 0}, { 55, 1}, { 54, 0}, { 54, 0},
  49.     { 54, 1}, { 53, 0}, { 53, 0}, { 53, 1}, { 52, 0}, { 52, 0}, { 52, 1}, { 51, 0},
  50.     { 51, 0}, { 51, 1}, { 50, 0}, { 50, 0}, { 50, 1}, { 49, 0}, { 49, 0}, { 49, 1},
  51.     { 48, 0}, { 48, 0}, { 48, 1}, { 47, 0}, { 47, 0}, { 47, 0}, { 47, 1}, { 46, 0},
  52.     { 46, 0}, { 46, 1}, { 45, 0}, { 45, 0}, { 45, 0}, { 45, 1}, { 44, 0}, { 44, 0},
  53.     { 44, 0}, { 44, 1}, { 43, 0}, { 43, 0}, { 43, 0}, { 43, 1}, { 42, 0}, { 42, 0},
  54.     { 42, 0}, { 42, 1}, { 41, 0}, { 41, 0}, { 41, 0}, { 41, 0}, { 41, 1}, { 40, 0},
  55.     { 40, 0}, { 40, 0}, { 40, 0}, { 40, 1}, { 39, 0}, { 39, 0}, { 39, 0}, { 39, 0},
  56.     { 39, 1}, { 38, 0}, { 38, 0}, { 38, 0}, { 38, 0}, { 38, 1}, { 37, 0}, { 37, 0},
  57.     { 37, 0}, { 37, 0}, { 37, 0}, { 37, 1}, { 36, 0}, { 36, 0}, { 36, 0}, { 36, 0},
  58.     { 36, 1}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 0}, { 35, 1},
  59.     { 34, 0}, { 34, 0}, { 34, 0}, { 34, 0}, { 34, 0}, { 34, 1}, { 33, 0}, { 33, 0},
  60.     { 33, 0}, { 33, 0}, { 33, 0}, { 33, 0}, { 33, 1}, { 32, 0}, { 32, 0}, { 32, 0},
  61.     { 32, 0}, { 32, 0}, { 32, 0}, { 32, 0}, { 32, 1}, { 31, 0}, { 31, 0}, { 31, 0},
  62.     { 31, 0}, { 31, 0}, { 31, 0}, { 31, 1}, { 30, 0}, { 30, 0}, { 30, 0}, { 30, 0}
  63.   };
  64.  
  65.   const uint16_t speed_lookuptable_slow[256][2] PROGMEM = {
  66.     { 62500, 12500}, { 50000, 8334}, { 41666, 5952}, { 35714, 4464}, { 31250, 3473}, { 27777, 2777}, { 25000, 2273}, { 22727, 1894},
  67.     { 20833, 1603}, { 19230, 1373}, { 17857, 1191}, { 16666, 1041}, { 15625, 920}, { 14705, 817}, { 13888, 731}, { 13157, 657},
  68.     { 12500, 596}, { 11904, 541}, { 11363, 494}, { 10869, 453}, { 10416, 416}, { 10000, 385}, { 9615, 356}, { 9259, 331},
  69.     { 8928, 308}, { 8620, 287}, { 8333, 269}, { 8064, 252}, { 7812, 237}, { 7575, 223}, { 7352, 210}, { 7142, 198},
  70.     { 6944, 188}, { 6756, 178}, { 6578, 168}, { 6410, 160}, { 6250, 153}, { 6097, 145}, { 5952, 139}, { 5813, 132},
  71.     { 5681, 126}, { 5555, 121}, { 5434, 115}, { 5319, 111}, { 5208, 106}, { 5102, 102}, { 5000, 99}, { 4901, 94},
  72.     { 4807, 91}, { 4716, 87}, { 4629, 84}, { 4545, 81}, { 4464, 79}, { 4385, 75}, { 4310, 73}, { 4237, 71},
  73.     { 4166, 68}, { 4098, 66}, { 4032, 64}, { 3968, 62}, { 3906, 60}, { 3846, 59}, { 3787, 56}, { 3731, 55},
  74.     { 3676, 53}, { 3623, 52}, { 3571, 50}, { 3521, 49}, { 3472, 48}, { 3424, 46}, { 3378, 45}, { 3333, 44},
  75.     { 3289, 43}, { 3246, 41}, { 3205, 41}, { 3164, 39}, { 3125, 39}, { 3086, 38}, { 3048, 36}, { 3012, 36},
  76.     { 2976, 35}, { 2941, 35}, { 2906, 33}, { 2873, 33}, { 2840, 32}, { 2808, 31}, { 2777, 30}, { 2747, 30},
  77.     { 2717, 29}, { 2688, 29}, { 2659, 28}, { 2631, 27}, { 2604, 27}, { 2577, 26}, { 2551, 26}, { 2525, 25},
  78.     { 2500, 25}, { 2475, 25}, { 2450, 23}, { 2427, 24}, { 2403, 23}, { 2380, 22}, { 2358, 22}, { 2336, 22},
  79.     { 2314, 21}, { 2293, 21}, { 2272, 20}, { 2252, 20}, { 2232, 20}, { 2212, 20}, { 2192, 19}, { 2173, 18},
  80.     { 2155, 19}, { 2136, 18}, { 2118, 18}, { 2100, 17}, { 2083, 17}, { 2066, 17}, { 2049, 17}, { 2032, 16},
  81.     { 2016, 16}, { 2000, 16}, { 1984, 16}, { 1968, 15}, { 1953, 16}, { 1937, 14}, { 1923, 15}, { 1908, 15},
  82.     { 1893, 14}, { 1879, 14}, { 1865, 14}, { 1851, 13}, { 1838, 14}, { 1824, 13}, { 1811, 13}, { 1798, 13},
  83.     { 1785, 12}, { 1773, 13}, { 1760, 12}, { 1748, 12}, { 1736, 12}, { 1724, 12}, { 1712, 12}, { 1700, 11},
  84.     { 1689, 12}, { 1677, 11}, { 1666, 11}, { 1655, 11}, { 1644, 11}, { 1633, 10}, { 1623, 11}, { 1612, 10},
  85.     { 1602, 10}, { 1592, 10}, { 1582, 10}, { 1572, 10}, { 1562, 10}, { 1552, 9}, { 1543, 10}, { 1533, 9},
  86.     { 1524, 9}, { 1515, 9}, { 1506, 9}, { 1497, 9}, { 1488, 9}, { 1479, 9}, { 1470, 9}, { 1461, 8},
  87.     { 1453, 8}, { 1445, 9}, { 1436, 8}, { 1428, 8}, { 1420, 8}, { 1412, 8}, { 1404, 8}, { 1396, 8},
  88.     { 1388, 7}, { 1381, 8}, { 1373, 7}, { 1366, 8}, { 1358, 7}, { 1351, 7}, { 1344, 8}, { 1336, 7},
  89.     { 1329, 7}, { 1322, 7}, { 1315, 7}, { 1308, 6}, { 1302, 7}, { 1295, 7}, { 1288, 6}, { 1282, 7},
  90.     { 1275, 6}, { 1269, 7}, { 1262, 6}, { 1256, 6}, { 1250, 7}, { 1243, 6}, { 1237, 6}, { 1231, 6},
  91.     { 1225, 6}, { 1219, 6}, { 1213, 6}, { 1207, 6}, { 1201, 5}, { 1196, 6}, { 1190, 6}, { 1184, 5},
  92.     { 1179, 6}, { 1173, 5}, { 1168, 6}, { 1162, 5}, { 1157, 5}, { 1152, 6}, { 1146, 5}, { 1141, 5},
  93.     { 1136, 5}, { 1131, 5}, { 1126, 5}, { 1121, 5}, { 1116, 5}, { 1111, 5}, { 1106, 5}, { 1101, 5},
  94.     { 1096, 5}, { 1091, 5}, { 1086, 4}, { 1082, 5}, { 1077, 5}, { 1072, 4}, { 1068, 5}, { 1063, 4},
  95.     { 1059, 5}, { 1054, 4}, { 1050, 4}, { 1046, 5}, { 1041, 4}, { 1037, 4}, { 1033, 5}, { 1028, 4},
  96.     { 1024, 4}, { 1020, 4}, { 1016, 4}, { 1012, 4}, { 1008, 4}, { 1004, 4}, { 1000, 4}, { 996, 4},
  97.     { 992, 4}, { 988, 4}, { 984, 4}, { 980, 4}, { 976, 4}, { 972, 4}, { 968, 3}, { 965, 3}
  98.   };
  99.  
  100. #elif F_CPU == 20000000
  101.  
  102.   const uint16_t speed_lookuptable_fast[256][2] PROGMEM = {
  103.     {62500, 54055}, {8445, 3917}, {4528, 1434}, {3094, 745}, {2349, 456}, {1893, 307}, {1586, 222}, {1364, 167},
  104.     {1197, 131}, {1066, 105}, {961, 86}, {875, 72}, {803, 61}, {742, 53}, {689, 45}, {644, 40},
  105.     {604, 35}, {569, 32}, {537, 28}, {509, 25}, {484, 23}, {461, 21}, {440, 19}, {421, 17},
  106.     {404, 16}, {388, 15}, {373, 14}, {359, 13}, {346, 12}, {334, 11}, {323, 10}, {313, 10},
  107.     {303, 9}, {294, 9}, {285, 8}, {277, 7}, {270, 8}, {262, 7}, {255, 6}, {249, 6},
  108.     {243, 6}, {237, 6}, {231, 5}, {226, 5}, {221, 5}, {216, 5}, {211, 4}, {207, 5},
  109.     {202, 4}, {198, 4}, {194, 4}, {190, 3}, {187, 4}, {183, 3}, {180, 3}, {177, 4},
  110.     {173, 3}, {170, 3}, {167, 2}, {165, 3}, {162, 3}, {159, 2}, {157, 3}, {154, 2},
  111.     {152, 3}, {149, 2}, {147, 2}, {145, 2}, {143, 2}, {141, 2}, {139, 2}, {137, 2},
  112.     {135, 2}, {133, 2}, {131, 2}, {129, 1}, {128, 2}, {126, 2}, {124, 1}, {123, 2},
  113.     {121, 1}, {120, 2}, {118, 1}, {117, 1}, {116, 2}, {114, 1}, {113, 1}, {112, 2},
  114.     {110, 1}, {109, 1}, {108, 1}, {107, 2}, {105, 1}, {104, 1}, {103, 1}, {102, 1},
  115.     {101, 1}, {100, 1}, {99, 1}, {98, 1}, {97, 1}, {96, 1}, {95, 1}, {94, 1},
  116.     {93, 1}, {92, 1}, {91, 0}, {91, 1}, {90, 1}, {89, 1}, {88, 1}, {87, 0},
  117.     {87, 1}, {86, 1}, {85, 1}, {84, 0}, {84, 1}, {83, 1}, {82, 1}, {81, 0},
  118.     {81, 1}, {80, 1}, {79, 0}, {79, 1}, {78, 0}, {78, 1}, {77, 1}, {76, 0},
  119.     {76, 1}, {75, 0}, {75, 1}, {74, 1}, {73, 0}, {73, 1}, {72, 0}, {72, 1},
  120.     {71, 0}, {71, 1}, {70, 0}, {70, 1}, {69, 0}, {69, 1}, {68, 0}, {68, 1},
  121.     {67, 0}, {67, 1}, {66, 0}, {66, 1}, {65, 0}, {65, 0}, {65, 1}, {64, 0},
  122.     {64, 1}, {63, 0}, {63, 1}, {62, 0}, {62, 0}, {62, 1}, {61, 0}, {61, 1},
  123.     {60, 0}, {60, 0}, {60, 1}, {59, 0}, {59, 0}, {59, 1}, {58, 0}, {58, 0},
  124.     {58, 1}, {57, 0}, {57, 0}, {57, 1}, {56, 0}, {56, 0}, {56, 1}, {55, 0},
  125.     {55, 0}, {55, 1}, {54, 0}, {54, 0}, {54, 1}, {53, 0}, {53, 0}, {53, 0},
  126.     {53, 1}, {52, 0}, {52, 0}, {52, 1}, {51, 0}, {51, 0}, {51, 0}, {51, 1},
  127.     {50, 0}, {50, 0}, {50, 0}, {50, 1}, {49, 0}, {49, 0}, {49, 0}, {49, 1},
  128.     {48, 0}, {48, 0}, {48, 0}, {48, 1}, {47, 0}, {47, 0}, {47, 0}, {47, 1},
  129.     {46, 0}, {46, 0}, {46, 0}, {46, 0}, {46, 1}, {45, 0}, {45, 0}, {45, 0},
  130.     {45, 1}, {44, 0}, {44, 0}, {44, 0}, {44, 0}, {44, 1}, {43, 0}, {43, 0},
  131.     {43, 0}, {43, 0}, {43, 1}, {42, 0}, {42, 0}, {42, 0}, {42, 0}, {42, 0},
  132.     {42, 1}, {41, 0}, {41, 0}, {41, 0}, {41, 0}, {41, 0}, {41, 1}, {40, 0},
  133.     {40, 0}, {40, 0}, {40, 0}, {40, 1}, {39, 0}, {39, 0}, {39, 0}, {39, 0},
  134.     {39, 0}, {39, 0}, {39, 1}, {38, 0}, {38, 0}, {38, 0}, {38, 0}, {38, 0},
  135.   };
  136.  
  137.   const uint16_t speed_lookuptable_slow[256][2] PROGMEM = {
  138.     {62500, 10417}, {52083, 7441}, {44642, 5580}, {39062, 4340}, {34722, 3472}, {31250, 2841}, {28409, 2368}, {26041, 2003},
  139.     {24038, 1717}, {22321, 1488}, {20833, 1302}, {19531, 1149}, {18382, 1021}, {17361, 914}, {16447, 822}, {15625, 745},
  140.     {14880, 676}, {14204, 618}, {13586, 566}, {13020, 520}, {12500, 481}, {12019, 445}, {11574, 414}, {11160, 385},
  141.     {10775, 359}, {10416, 336}, {10080, 315}, {9765, 296}, {9469, 278}, {9191, 263}, {8928, 248}, {8680, 235},
  142.     {8445, 222}, {8223, 211}, {8012, 200}, {7812, 191}, {7621, 181}, {7440, 173}, {7267, 165}, {7102, 158},
  143.     {6944, 151}, {6793, 145}, {6648, 138}, {6510, 133}, {6377, 127}, {6250, 123}, {6127, 118}, {6009, 113},
  144.     {5896, 109}, {5787, 106}, {5681, 101}, {5580, 98}, {5482, 95}, {5387, 91}, {5296, 88}, {5208, 86},
  145.     {5122, 82}, {5040, 80}, {4960, 78}, {4882, 75}, {4807, 73}, {4734, 70}, {4664, 69}, {4595, 67},
  146.     {4528, 64}, {4464, 63}, {4401, 61}, {4340, 60}, {4280, 58}, {4222, 56}, {4166, 55}, {4111, 53},
  147.     {4058, 52}, {4006, 51}, {3955, 49}, {3906, 48}, {3858, 48}, {3810, 45}, {3765, 45}, {3720, 44},
  148.     {3676, 43}, {3633, 42}, {3591, 40}, {3551, 40}, {3511, 39}, {3472, 38}, {3434, 38}, {3396, 36},
  149.     {3360, 36}, {3324, 35}, {3289, 34}, {3255, 34}, {3221, 33}, {3188, 32}, {3156, 31}, {3125, 31},
  150.     {3094, 31}, {3063, 30}, {3033, 29}, {3004, 28}, {2976, 28}, {2948, 28}, {2920, 27}, {2893, 27},
  151.     {2866, 26}, {2840, 25}, {2815, 25}, {2790, 25}, {2765, 24}, {2741, 24}, {2717, 24}, {2693, 23},
  152.     {2670, 22}, {2648, 22}, {2626, 22}, {2604, 22}, {2582, 21}, {2561, 21}, {2540, 20}, {2520, 20},
  153.     {2500, 20}, {2480, 20}, {2460, 19}, {2441, 19}, {2422, 19}, {2403, 18}, {2385, 18}, {2367, 18},
  154.     {2349, 17}, {2332, 18}, {2314, 17}, {2297, 16}, {2281, 17}, {2264, 16}, {2248, 16}, {2232, 16},
  155.     {2216, 16}, {2200, 15}, {2185, 15}, {2170, 15}, {2155, 15}, {2140, 15}, {2125, 14}, {2111, 14},
  156.     {2097, 14}, {2083, 14}, {2069, 14}, {2055, 13}, {2042, 13}, {2029, 13}, {2016, 13}, {2003, 13},
  157.     {1990, 13}, {1977, 12}, {1965, 12}, {1953, 13}, {1940, 11}, {1929, 12}, {1917, 12}, {1905, 12},
  158.     {1893, 11}, {1882, 11}, {1871, 11}, {1860, 11}, {1849, 11}, {1838, 11}, {1827, 11}, {1816, 10},
  159.     {1806, 11}, {1795, 10}, {1785, 10}, {1775, 10}, {1765, 10}, {1755, 10}, {1745, 9}, {1736, 10},
  160.     {1726, 9}, {1717, 10}, {1707, 9}, {1698, 9}, {1689, 9}, {1680, 9}, {1671, 9}, {1662, 9},
  161.     {1653, 9}, {1644, 8}, {1636, 9}, {1627, 8}, {1619, 9}, {1610, 8}, {1602, 8}, {1594, 8},
  162.     {1586, 8}, {1578, 8}, {1570, 8}, {1562, 8}, {1554, 7}, {1547, 8}, {1539, 8}, {1531, 7},
  163.     {1524, 8}, {1516, 7}, {1509, 7}, {1502, 7}, {1495, 7}, {1488, 7}, {1481, 7}, {1474, 7},
  164.     {1467, 7}, {1460, 7}, {1453, 7}, {1446, 6}, {1440, 7}, {1433, 7}, {1426, 6}, {1420, 6},
  165.     {1414, 7}, {1407, 6}, {1401, 6}, {1395, 7}, {1388, 6}, {1382, 6}, {1376, 6}, {1370, 6},
  166.     {1364, 6}, {1358, 6}, {1352, 6}, {1346, 5}, {1341, 6}, {1335, 6}, {1329, 5}, {1324, 6},
  167.     {1318, 5}, {1313, 6}, {1307, 5}, {1302, 6}, {1296, 5}, {1291, 5}, {1286, 6}, {1280, 5},
  168.     {1275, 5}, {1270, 5}, {1265, 5}, {1260, 5}, {1255, 5}, {1250, 5}, {1245, 5}, {1240, 5},
  169.     {1235, 5}, {1230, 5}, {1225, 5}, {1220, 5}, {1215, 4}, {1211, 5}, {1206, 5}, {1201, 5},
  170.   };
  171.  
  172. #elif F_CPU == 24000000
  173.  
  174. const uint16_t speed_lookuptable_fast[256][2] PROGMEM = {
  175.    {62500, 52632}, {9868, 4511}, {5357, 1681}, {3676, 878}, {2798, 539}, {2259, 366}, {1893, 263}, {1630, 199},
  176.    {1431, 156}, {1275, 125}, {1150, 103}, {1047, 86}, {961, 73}, {888, 63}, {825, 54}, {771, 48},
  177.    {723, 42}, {681, 37}, {644, 34}, {610, 30}, {580, 27}, {553, 25}, {528, 23}, {505, 21},
  178.    {484, 19}, {465, 18}, {447, 16}, {431, 16}, {415, 14}, {401, 13}, {388, 13}, {375, 11},
  179.    {364, 11}, {353, 11}, {342, 9}, {333, 10}, {323, 8}, {315, 9}, {306, 7}, {299, 8},
  180.    {291, 7}, {284, 7}, {277, 6}, {271, 6}, {265, 6}, {259, 6}, {253, 5}, {248, 5},
  181.    {243, 5}, {238, 5}, {233, 5}, {228, 4}, {224, 4}, {220, 4}, {216, 4}, {212, 4},
  182.    {208, 4}, {204, 3}, {201, 4}, {197, 3}, {194, 3}, {191, 3}, {188, 3}, {185, 3},
  183.    {182, 3}, {179, 2}, {177, 3}, {174, 3}, {171, 2}, {169, 3}, {166, 2}, {164, 2},
  184.    {162, 2}, {160, 3}, {157, 2}, {155, 2}, {153, 2}, {151, 2}, {149, 2}, {147, 1},
  185.    {146, 2}, {144, 2}, {142, 2}, {140, 1}, {139, 2}, {137, 2}, {135, 1}, {134, 2},
  186.    {132, 1}, {131, 2}, {129, 1}, {128, 1}, {127, 2}, {125, 1}, {124, 1}, {123, 2},
  187.    {121, 1}, {120, 1}, {119, 1}, {118, 2}, {116, 1}, {115, 1}, {114, 1}, {113, 1},
  188.    {112, 1}, {111, 1}, {110, 1}, {109, 1}, {108, 1}, {107, 1}, {106, 1}, {105, 1},
  189.    {104, 1}, {103, 1}, {102, 1}, {101, 1}, {100, 0}, {100, 1}, {99, 1}, {98, 1},
  190.    {97, 1}, {96, 1}, {95, 0}, {95, 1}, {94, 1}, {93, 1}, {92, 0}, {92, 1},
  191.    {91, 1}, {90, 0}, {90, 1}, {89, 1}, {88, 1}, {87, 0}, {87, 1}, {86, 0},
  192.    {86, 1}, {85, 1}, {84, 0}, {84, 1}, {83, 0}, {83, 1}, {82, 1}, {81, 0},
  193.    {81, 1}, {80, 0}, {80, 1}, {79, 0}, {79, 1}, {78, 0}, {78, 1}, {77, 0},
  194.    {77, 1}, {76, 0}, {76, 1}, {75, 0}, {75, 1}, {74, 0}, {74, 1}, {73, 0},
  195.    {73, 1}, {72, 0}, {72, 1}, {71, 0}, {71, 1}, {70, 0}, {70, 0}, {70, 1},
  196.    {69, 0}, {69, 1}, {68, 0}, {68, 0}, {68, 1}, {67, 0}, {67, 1}, {66, 0},
  197.    {66, 0}, {66, 1}, {65, 0}, {65, 0}, {65, 1}, {64, 0}, {64, 1}, {63, 0},
  198.    {63, 0}, {63, 1}, {62, 0}, {62, 0}, {62, 1}, {61, 0}, {61, 0}, {61, 1},
  199.    {60, 0}, {60, 0}, {60, 0}, {60, 1}, {59, 0}, {59, 0}, {59, 1}, {58, 0},
  200.    {58, 0}, {58, 1}, {57, 0}, {57, 0}, {57, 0}, {57, 1}, {56, 0}, {56, 0},
  201.    {56, 0}, {56, 1}, {55, 0}, {55, 0}, {55, 1}, {54, 0}, {54, 0}, {54, 0},
  202.    {54, 1}, {53, 0}, {53, 0}, {53, 0}, {53, 1}, {52, 0}, {52, 0}, {52, 0},
  203.    {52, 0}, {52, 1}, {51, 0}, {51, 0}, {51, 0}, {51, 1}, {50, 0}, {50, 0},
  204.    {50, 0}, {50, 0}, {50, 1}, {49, 0}, {49, 0}, {49, 0}, {49, 1}, {48, 0},
  205.    {48, 0}, {48, 0}, {48, 0}, {48, 1}, {47, 0}, {47, 0}, {47, 0}, {47, 0},
  206.    {47, 0}, {47, 1}, {46, 0}, {46, 0}, {46, 0}, {46, 0}, {46, 1}, {45, 1},
  207. };
  208.  
  209. const uint16_t speed_lookuptable_slow[256][2] PROGMEM = {
  210.    {62500, 8929}, {53571, 6696}, {46875, 5209}, {41666, 4166}, {37500, 3410}, {34090, 2840}, {31250, 2404}, {28846, 2061},
  211.    {26785, 1785}, {25000, 1563}, {23437, 1379}, {22058, 1225}, {20833, 1097}, {19736, 986}, {18750, 893}, {17857, 812},
  212.    {17045, 741}, {16304, 679}, {15625, 625}, {15000, 577}, {14423, 535}, {13888, 496}, {13392, 461}, {12931, 431},
  213.    {12500, 404}, {12096, 378}, {11718, 355}, {11363, 334}, {11029, 315}, {10714, 298}, {10416, 281}, {10135, 267},
  214.    {9868, 253}, {9615, 240}, {9375, 229}, {9146, 218}, {8928, 208}, {8720, 198}, {8522, 189}, {8333, 181},
  215.    {8152, 174}, {7978, 166}, {7812, 159}, {7653, 153}, {7500, 148}, {7352, 141}, {7211, 136}, {7075, 131},
  216.    {6944, 126}, {6818, 122}, {6696, 118}, {6578, 113}, {6465, 110}, {6355, 105}, {6250, 103}, {6147, 99},
  217.    {6048, 96}, {5952, 93}, {5859, 90}, {5769, 88}, {5681, 84}, {5597, 83}, {5514, 80}, {5434, 77},
  218.    {5357, 76}, {5281, 73}, {5208, 72}, {5136, 69}, {5067, 67}, {5000, 66}, {4934, 64}, {4870, 63},
  219.    {4807, 61}, {4746, 59}, {4687, 58}, {4629, 56}, {4573, 55}, {4518, 54}, {4464, 53}, {4411, 51},
  220.    {4360, 50}, {4310, 49}, {4261, 48}, {4213, 47}, {4166, 46}, {4120, 44}, {4076, 44}, {4032, 43},
  221.    {3989, 42}, {3947, 41}, {3906, 41}, {3865, 39}, {3826, 39}, {3787, 37}, {3750, 38}, {3712, 36},
  222.    {3676, 36}, {3640, 35}, {3605, 34}, {3571, 34}, {3537, 33}, {3504, 32}, {3472, 32}, {3440, 31},
  223.    {3409, 31}, {3378, 30}, {3348, 30}, {3318, 29}, {3289, 29}, {3260, 28}, {3232, 27}, {3205, 28},
  224.    {3177, 26}, {3151, 26}, {3125, 26}, {3099, 26}, {3073, 25}, {3048, 24}, {3024, 24}, {3000, 24},
  225.    {2976, 24}, {2952, 23}, {2929, 23}, {2906, 22}, {2884, 22}, {2862, 22}, {2840, 21}, {2819, 21},
  226.    {2798, 21}, {2777, 20}, {2757, 20}, {2737, 20}, {2717, 20}, {2697, 19}, {2678, 19}, {2659, 19},
  227.    {2640, 18}, {2622, 18}, {2604, 18}, {2586, 18}, {2568, 17}, {2551, 18}, {2533, 17}, {2516, 16},
  228.    {2500, 17}, {2483, 16}, {2467, 17}, {2450, 15}, {2435, 16}, {2419, 16}, {2403, 15}, {2388, 15},
  229.    {2373, 15}, {2358, 15}, {2343, 14}, {2329, 15}, {2314, 14}, {2300, 14}, {2286, 14}, {2272, 13},
  230.    {2259, 14}, {2245, 13}, {2232, 14}, {2218, 13}, {2205, 13}, {2192, 12}, {2180, 13}, {2167, 12},
  231.    {2155, 13}, {2142, 12}, {2130, 12}, {2118, 12}, {2106, 12}, {2094, 11}, {2083, 12}, {2071, 11},
  232.    {2060, 11}, {2049, 11}, {2038, 11}, {2027, 11}, {2016, 11}, {2005, 11}, {1994, 10}, {1984, 11},
  233.    {1973, 10}, {1963, 10}, {1953, 10}, {1943, 11}, {1932, 9}, {1923, 10}, {1913, 10}, {1903, 10},
  234.    {1893, 9}, {1884, 9}, {1875, 10}, {1865, 9}, {1856, 9}, {1847, 9}, {1838, 9}, {1829, 9},
  235.    {1820, 9}, {1811, 9}, {1802, 8}, {1794, 9}, {1785, 8}, {1777, 9}, {1768, 8}, {1760, 8},
  236.    {1752, 8}, {1744, 8}, {1736, 8}, {1728, 8}, {1720, 8}, {1712, 8}, {1704, 8}, {1696, 7},
  237.    {1689, 8}, {1681, 7}, {1674, 8}, {1666, 7}, {1659, 8}, {1651, 7}, {1644, 7}, {1637, 7},
  238.    {1630, 7}, {1623, 7}, {1616, 7}, {1609, 7}, {1602, 7}, {1595, 7}, {1588, 6}, {1582, 7},
  239.    {1575, 6}, {1569, 7}, {1562, 6}, {1556, 7}, {1549, 6}, {1543, 7}, {1536, 6}, {1530, 6},
  240.    {1524, 6}, {1518, 6}, {1512, 6}, {1506, 6}, {1500, 6}, {1494, 6}, {1488, 6}, {1482, 6},
  241.    {1476, 6}, {1470, 6}, {1464, 5}, {1459, 6}, {1453, 6}, {1447, 5}, {1442, 6}, {1436, 6},
  242. };
  243.  
  244.  
  245. #endif
  246.  
  247. #endif // SPEED_LOOKUPTABLE_H
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top