diff --git a/cw/cw_main.c b/cw/cw_main.c index 31237d99..bd471fbf 100644 --- a/cw/cw_main.c +++ b/cw/cw_main.c @@ -460,8 +460,8 @@ int get_tlm(int tlm[][5]) { data2 = strtok (NULL, " "); i++; } -// printf("Battery voltage = %s UPTIME_SEC %s UCTEMP %s \n", -// mopower[VBATT], mopower[UPTIME_SEC], mopower[UCTEMP]); + printf("Battery voltage = %s UPTIME_SEC %s UCTEMP %s \n", + mopower[VBATT], mopower[UPTIME_SEC], mopower[UCTEMP]); long int time = atoi(mopower[UPTIME_SEC]); @@ -534,6 +534,9 @@ int get_tlm(int tlm[][5]) { // int tlm_4a = (int)((95.8 - temp)/1.48 + 0.5); tlm[4][A] = (int)((95.8 - temp)/1.48 + 0.5); // printf(" 4A: %d \n", tlm_4a); + + tlm[5][A] = (int)((95.8 - atoi(mopower[UCTEMP]))/1.48 + 0.5); + printf(" 5A: %d \n", tlm[5][A]); // int tlm_6d = 49 + rand() % 3; tlm[6][D] = 49 + rand() % 3;