This commit is contained in:
cfif 2026-04-01 11:29:51 +03:00
parent 0e72cee283
commit 30e144d250
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ int main() {
printf("\n-----------TABLE_KST45------------------\n"); printf("\n-----------TABLE_KST45------------------\n");
// Инициализация с таблицей KST45 и R1=3300 Ом // Инициализация с таблицей KST45 и R1=3300 Ом
init_fast_lookup_table(TABLE_KST45, 3000.0f, ALG_STEINHART); init_fast_lookup_table(TABLE_KST45, 3300.0f, ALG_STEINHART);
// Получение температуры // Получение температуры
float temp = get_temperature_from_adc(adc_value, ALG_STEINHART); float temp = get_temperature_from_adc(adc_value, ALG_STEINHART);
int16_t temp_fast = get_temperature_log_fast(adc_value); int16_t temp_fast = get_temperature_log_fast(adc_value);
@ -39,7 +39,7 @@ int main() {
printf("\n-----------INCAR------------------\n"); printf("\n-----------INCAR------------------\n");
// Смена конфигурации на INCAR с R1=20000 Ом // Смена конфигурации на INCAR с R1=20000 Ом
// set_active_config(TABLE_INCAR, 2000.0f); // set_active_config(TABLE_INCAR, 2000.0f);
init_fast_lookup_table(TABLE_INCAR, 20000.0f, ALG_STEINHART); init_fast_lookup_table(TABLE_INCAR, 3300.0f, ALG_STEINHART);
temp_fast = get_temperature_log_fast(adc_value); temp_fast = get_temperature_log_fast(adc_value);
printf("ADC: %u, temp_fast: %.1f °C\n", adc_value, temp_fast / 10.0f); printf("ADC: %u, temp_fast: %.1f °C\n", adc_value, temp_fast / 10.0f);