|
|
|
@ -460,8 +460,8 @@ int get_tlm(int tlm[][5]) {
|
|
|
|
data2 = strtok (NULL, " ");
|
|
|
|
data2 = strtok (NULL, " ");
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// printf("Battery voltage = %s UPTIME_SEC %s UCTEMP %s \n",
|
|
|
|
printf("Battery voltage = %s UPTIME_SEC %s UCTEMP %s \n",
|
|
|
|
// mopower[VBATT], mopower[UPTIME_SEC], mopower[UCTEMP]);
|
|
|
|
mopower[VBATT], mopower[UPTIME_SEC], mopower[UCTEMP]);
|
|
|
|
|
|
|
|
|
|
|
|
long int time = atoi(mopower[UPTIME_SEC]);
|
|
|
|
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);
|
|
|
|
// int tlm_4a = (int)((95.8 - temp)/1.48 + 0.5);
|
|
|
|
tlm[4][A] = (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);
|
|
|
|
// 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;
|
|
|
|
// int tlm_6d = 49 + rand() % 3;
|
|
|
|
tlm[6][D] = 49 + rand() % 3;
|
|
|
|
tlm[6][D] = 49 + rand() % 3;
|
|
|
|
|