const generators = { ad6: { rpm: { speed: (x) => 0.475 * x + 0.58, power: (x) => 0.000666667 * Math.pow(x, 3) - 0.00464286 * Math.pow(x, 2) + 0.704762 * x + 0.0857143, }, speed: { power: (x) => 0.00497944 * Math.pow(x, 3) + 0.0382844 * Math.pow(x, 2) + 0.636253 * x - 0.0926272, // (cubic) }, }, aab: { rpm: { speed: (x) => 0.616994 * x - 0.0295657, power: (x) => 0.00116038 * Math.pow(x, 3) + 0.000732513 * Math.pow(x, 2) + 0.582979 * x - 0.0466331, // (cubic) }, speed: { power: (x) => 0.00492128 * Math.pow(x, 3) + 0.0024886 * Math.pow(x, 2) + 0.967059 * x - 0.0851045, // (cubic) }, }, echo: { rpm: { speed: (x) => 0.6 * x, power: (x) => 0.000989583 * Math.pow(x, 3) + 0.00232143 * Math.pow(x, 2) + 0.268452 * x - 0.0428571, // (cubic) }, speed: { power: (x) => 0.0045814 * Math.pow(x, 3) + 0.00644841 * Math.pow(x, 2) + 0.447421 * x - 0.0428571, // (cubic) }, }, bikeergDamper10: { rpm: { speed: (x) => 0.516636 * x - 0.304003, power: (x) => 0.127052 * Math.pow(x, 2) - 3.76672 * x - 2.65556, // (quadratic) calhour: (x) => 0.435283 * Math.pow(x, 2) - 12.8844 * x + 289.661, // (quadratic) }, speed: { power: (x) => 0.00625518 * Math.pow(x, 3) + 0.111909 * Math.pow(x, 2) - 3.22511 * x + 29.6213, // (cubic) calhour: (x) => 2.34469 * Math.pow(x, 2) - 68.8354 * x + 946.93, // (quadratic) }, }, bikeergDamper5: { rpm: { speed: (x) => 0.42235 * x - 0.347034, power: (x) => -0.000157327 * Math.pow(x, 3) + 0.12073 * Math.pow(x, 2) - 5.97022 * x + 79.8918, // (cubic) calhour: (x) => 0.297865 * Math.pow(x, 2) - 12.5112 * x + 400.216, // (quadratic) }, speed: { power: (x) => 0.00915041 * Math.pow(x, 3) - 0.141185 * Math.pow(x, 2) + 3.85559 * x - 33.9413, // (cubic) calhour: (x) => 0.0318684 * Math.pow(x, 3) - 0.529507 * Math.pow(x, 2) + 14.5516 * x + 170.821, // (cubic) }, }, bikeergDamper1: { rpm: { speed: (x) => 0.309206 * x + 0.211111, power: (x) => 0.0000833333 * Math.pow(x, 3) + 0.0260714 * Math.pow(x, 2) - 1.5119 * x + 28.2143, // (cubic) calhour: (x) => 0.14881 * Math.pow(x, 2) - 9.09762 * x + 477.286, // (quadratic) }, speed: { power: (x) => 0.00747187 * Math.pow(x, 3) + 0.00210556 * Math.pow(x, 2) - 0.0125891 * x - 1.11492, // (cubic) calhour: (x) => 1.66999 * Math.pow(x, 2) - 34.3443 * x + 519.084, // (quadratic) }, }, };