/* Apply a very good linear approximation of the Callendar-Van Dusen equation to convert the RTD resistance to temperature:  */
static double calculate_temperature(double resistance, double resistance_0)
/* Apply a very good linear approximation of the Callendar-Van Dusen equation to convert the RTD resistance to temperature:  */
static double calculate_temperature(double resistance, double resistance_0)
{
	double temperature;
	temperature = (resistance - resistance_0) / (resistance_0 * RTD_A);
	return temperature;
}