add write of Batt voltage string to telem_string.txt

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent 8cdc8f62b4
commit 2a238fdf84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@
* *
* Portions Copyright (C) 2018 Jonathan Brandenburg * Portions Copyright (C) 2018 Jonathan Brandenburg
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistributVe it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* (at your option) any later version. * (at your option) any later version.
* *
@ -826,6 +826,11 @@ int main(int argc, char * argv[]) {
pclose(file6); pclose(file6);
sleep(10); sleep(10);
} }
FILE * fp = fopen("/home/pi/CubeSatSim/telem_string.txt", "w")
fprintf(fp, "Vbatt = %4.2f", batteryVoltage);
fclose(fp);
/**/ /**/
// sleep(1); // Delay 1 second // sleep(1); // Delay 1 second
ctr = 0; ctr = 0;

Loading…
Cancel
Save

Powered by TurnKey Linux.