Apply modern C++ to that module. Use constexpr for configuration constants. Replace raw arrays with std::array. Wrap resource ...
Treadmills are smarter than ever, giving you plenty of training options if you prefer to move your training indoors.