From fa0ffbf57522212f8fb01af9d5dad2461aa941d3 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 27 Jul 2022 16:26:55 -0400 Subject: [PATCH] fixed diode temperature analog read to TEMPERATURE_PIN --- cubesatsim/cubesatsim.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index c40bbba8..cd41e66f 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2201,7 +2201,7 @@ void read_payload() sprintf(str, "MPU6050 0.0 0.0 0.0 0.0 0.0 0.0 "); strcat(payload_str, str); - sensorValue = analogRead(A3); + sensorValue = analogRead(TEMPERATURE_PIN); //Serial.println(sensorValue); Temp = T1 + (sensorValue - R1) *((T2 - T1)/(R2 - R1)); // sprintf(str, "XS %.1f %.1f\n", Temp, Sensor1); @@ -2334,7 +2334,7 @@ void read_payload() Serial1.print(" "); Serial1.print(mpu6050.getAccZ()); - sensorValue = analogRead(A3); + sensorValue = analogRead(TEMPERATURE_PIN); //Serial.println(sensorValue); Temp = T1 + (sensorValue - R1) *((T2 - T1)/(R2 - R1)); @@ -2448,7 +2448,7 @@ void payload_OK_only() Serial.print(mpu6050.getAccZ()); } - sensorValue = analogRead(A3); + sensorValue = analogRead(TEMPERATURE_PIN); //Serial.println(sensorValue); Temp = T1 + (sensorValue - R1) *((T2 - T1)/(R2 - R1)); @@ -2522,7 +2522,7 @@ void payload_OK_only() Serial1.print(" "); Serial1.print(mpu6050.getAccZ()); - sensorValue = analogRead(A3); + sensorValue = analogRead(TEMPERATURE_PIN); //Serial.println(sensorValue); Temp = T1 + (sensorValue - R1) *((T2 - T1)/(R2 - R1));