Skip to content

Commit a2ca344

Browse files
committed
Compile test: Add SUPPORT_THERMISTOR_CUTOFF support
1 parent d0da514 commit a2ca344

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/compile_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'SUPPORT_MOTOR_SERVO',
5353
'SUPPORT_TEMP_SENSOR',
5454
'SUPPORT_THERMISTOR',
55+
'SUPPORT_THERMISTOR_CUTOFF',
5556
'SUPPORT_HX711',
5657
'DETECT_BROKEN_SPEEDSENSOR',
5758
'USE_EXTERNAL_CURRENT_SENSOR',
@@ -215,6 +216,8 @@ def write_config_h(filename=CONFIG_H,
215216
f.write('const float thermistor_t0=0.00335401643; // 1/T0 of thermistor in 1/K\n')
216217
f.write('const float thermistor_b=0.00025316455; // 1/beta of thermistor in 1/K\n')
217218
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')
218221
f.write('const int pas_tolerance=1; //0... increase to make pas sensor slower but more tolerant against speed changes\n')
219222
f.write('const int throttle_offset=196; //Offset voltage of throttle control when in "0" position (0..1023 = 0..5V)\n')
220223
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):
499502
'SUPPORT_GEAR_SHIFT',
500503
'SUPPORT_TEMP_SENSOR',
501504
'SUPPORT_THERMISTOR',
505+
'SUPPORT_THERMISTOR_CUTOFF',
502506
'SUPPORT_HX711',
503507
'DETECT_BROKEN_SPEEDSENSOR'
504508
]

0 commit comments

Comments
 (0)