From 2c28e091f2a45a43b05c752d95fd5f4c198744b7 Mon Sep 17 00:00:00 2001 From: Lennard <27106448+SirWalross@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:03:03 +0200 Subject: [PATCH] New data --- bash.log | 10 ++++++++++ config.yml | 2 +- main.py | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bash.log b/bash.log index ca4556c..b97e308 100644 --- a/bash.log +++ b/bash.log @@ -1,3 +1,13 @@ 2022-06-08 12:53:41 fatal: unable to access 'https://github.com/SirWalross/MessdatenSilo.git/': Could not resolve host: github.com +[main c7812e5] New data + 1 file changed, 1 insertion(+), 1 deletion(-) +fatal: unable to access 'https://github.com/SirWalross/MessdatenSilo.git/': Could not resolve host: github.com + +2022-06-08 12:53:42, WARNING, [main_logger.main:136] Starting +2022-06-08 12:53:42, WARNING, [main_logger.get_offset:81] Didn't find any old offsets, so starting at 0. +2022-06-08 12:53:42, WARNING, [main_logger.main:146] Connected to serial ports +2022-06-08 13:03:02 +fatal: unable to access 'https://github.com/SirWalross/MessdatenSilo.git/': Could not resolve host: github.com + diff --git a/config.yml b/config.yml index d3fe474..813b81c 100644 --- a/config.yml +++ b/config.yml @@ -14,6 +14,6 @@ InfoLogger: - WARNING Data: - factors: [9.6474, 0, 10.9132, -11.6764] # factors for the 4 dms + factors: [1.74, 0, 0.9, -0.96] # factors for the 4 dms delta_time: 30 # time between logging data smoothing: false # whether to smoothe the logged data diff --git a/main.py b/main.py index b3c5fa8..76b4d1d 100644 --- a/main.py +++ b/main.py @@ -182,7 +182,7 @@ def main(config: Any) -> None: if time.time() - last_write > delta_time: # write data - data_logger.info(",".join([f"{value/n * factors[i]:.5f}" for i, value in enumerate(data)]) + f",{n}") + data_logger.info(",".join([f"{(value/n) * factors[i]:.5f}" for i, value in enumerate(data)]) + f",{n}") logger.debug("Wrote data") n = 0 data = np.zeros((8,)) -- GitLab