|
|
|
@ -919,7 +919,7 @@ int main(int argc, char * argv[]) {
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
|
|
|
|
FILE * fp = fopen("/home/pi/CubeSatSim/telem_string.txt", "w");
|
|
|
|
FILE * fp = fopen("/home/pi/CubeSatSim/telem_string.txt", "w");
|
|
|
|
if ((fp != NULL) {
|
|
|
|
if (fp != NULL) {
|
|
|
|
printf("Writing telem_string.txt\n");
|
|
|
|
printf("Writing telem_string.txt\n");
|
|
|
|
if (batteryVoltage != 4.5)
|
|
|
|
if (batteryVoltage != 4.5)
|
|
|
|
fprintf(fp, "BAT %4.2fV %5.1fmA\n", batteryVoltage, batteryCurrent);
|
|
|
|
fprintf(fp, "BAT %4.2fV %5.1fmA\n", batteryVoltage, batteryCurrent);
|
|
|
|
|