Skip to content

Commit 307e879

Browse files
committed
Added telemtry data for cc1120 temp and rtcTemp.
1 parent a87b930 commit 307e879

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

obc/app/modules/thermal_mgr/thermal_mgr.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@ static obc_error_code_t collectThermalData(void) {
3232

3333
float lm75bdTemp = 0.0f;
3434
RETURN_IF_ERROR_CODE(readTempLM75BD(LM75BD_OBC_I2C_ADDR, &lm75bdTemp));
35-
36-
// Uncomment this if comms manager task being suspened issue is fixed.
37-
// float cc1120Temp = 0.0f;
38-
// RETURN_IF_ERROR_CODE(readCC1120Temp(&cc1120Temp));
39-
35+
telemetry_data_t lm75bdTempVal = {.obcTemp = lm75bdTemp, .id = TELEM_OBC_TEMP, .timestamp = getCurrentUnixTime()};
36+
RETURN_IF_ERROR_CODE(addTelemetryData(&lm75bdTempVal));
37+
38+
/* Uncomment this if comms manager task being suspened issue is fixed.
39+
float cc1120Temp = 0.0f;
40+
RETURN_IF_ERROR_CODE(readCC1120Temp(&cc1120Temp));
41+
telemetry_data_t cc1120TempVal = {.obcTemp = lm75bdTemp, .id = TELEM_OBC_TEMP, .timestamp = getCurrentUnixTime()};
42+
RETURN_IF_ERROR_CODE(addTelemetryData(&cc1120TempVal));
43+
*/
4044
float rtcTemp = 0.0f;
4145
RETURN_IF_ERROR_CODE(readRTCTemp(&rtcTemp));
42-
43-
telemetry_data_t obcTempVal = {.obcTemp = lm75bdTemp, .id = TELEM_OBC_TEMP, .timestamp = getCurrentUnixTime()};
44-
45-
RETURN_IF_ERROR_CODE(addTelemetryData(&obcTempVal));
46+
telemetry_data_t rtcTempVal = {.obcTemp = lm75bdTemp, .id = TELEM_OBC_TEMP, .timestamp = getCurrentUnixTime()};
47+
RETURN_IF_ERROR_CODE(addTelemetryData(&rtcTempVal));
4648

4749
return OBC_ERR_CODE_SUCCESS;
4850
}

0 commit comments

Comments
 (0)