kopia lustrzana https://github.com/sq2ips/m20-custom-firmware
change NTC resistor
rodzic
9536ea2d4c
commit
a5dcbb59c3
|
@ -189,7 +189,7 @@ void main_loop(void)
|
|||
|
||||
// External temp calculating
|
||||
// Rntc = Vout * R1 / Vin - Vout
|
||||
float NTC_R = ((temp_adc_raw * 36500) / (4096 - temp_adc_raw));
|
||||
float NTC_R = ((temp_adc_raw * 330000) / (4096 - temp_adc_raw));
|
||||
float NTC_T = 1 / (-0.000400644 + (0.000490078 * log(NTC_R)) + (-0.000000720 * pow(log(NTC_R), 3))) - 273.15;
|
||||
HorusPacket.ExtTemp = (int16_t)round(NTC_T * 10.0);
|
||||
#ifdef DEBUG
|
||||
|
|
Ładowanie…
Reference in New Issue