From 2a238fdf841d198333dfc2d526c4a5ee44d37dd6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 12 Aug 2023 19:17:09 -0400 Subject: [PATCH] add write of Batt voltage string to telem_string.txt --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 1b6e3422..62b644ef 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ * * 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 * (at your option) any later version. * @@ -826,6 +826,11 @@ int main(int argc, char * argv[]) { pclose(file6); 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 ctr = 0;