File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 52
52
'SUPPORT_MOTOR_SERVO' ,
53
53
'SUPPORT_TEMP_SENSOR' ,
54
54
'SUPPORT_THERMISTOR' ,
55
+ 'SUPPORT_THERMISTOR_CUTOFF' ,
55
56
'SUPPORT_HX711' ,
56
57
'DETECT_BROKEN_SPEEDSENSOR' ,
57
58
'USE_EXTERNAL_CURRENT_SENSOR' ,
@@ -215,6 +216,8 @@ def write_config_h(filename=CONFIG_H,
215
216
f .write ('const float thermistor_t0=0.00335401643; // 1/T0 of thermistor in 1/K\n ' )
216
217
f .write ('const float thermistor_b=0.00025316455; // 1/beta of thermistor in 1/K\n ' )
217
218
f .write ('const float thermistor_r=10; // r of thermistor in kOhm\n ' )
219
+ f .write ('const int temperature_cutoff_start=100; //start of temperature cutoff (100% power)\n ' )
220
+ f .write ('const int temperature_cutoff_stop=120; //stop of temperature cutoff in °C (0% power)\n ' )
218
221
f .write ('const int pas_tolerance=1; //0... increase to make pas sensor slower but more tolerant against speed changes\n ' )
219
222
f .write ('const int throttle_offset=196; //Offset voltage of throttle control when in "0" position (0..1023 = 0..5V)\n ' )
220
223
f .write ('const int throttle_max=832; //Offset voltage of throttle control when in "MAX" position (0..1023 = 0..5V)\n ' )
@@ -499,6 +502,7 @@ def test_max_config_fc2x0(self):
499
502
'SUPPORT_GEAR_SHIFT' ,
500
503
'SUPPORT_TEMP_SENSOR' ,
501
504
'SUPPORT_THERMISTOR' ,
505
+ 'SUPPORT_THERMISTOR_CUTOFF' ,
502
506
'SUPPORT_HX711' ,
503
507
'DETECT_BROKEN_SPEEDSENSOR'
504
508
]
You can’t perform that action at this time.
0 commit comments