Skip to content
Snippets Groups Projects
Commit 2c28e091 authored by Lennard's avatar Lennard
Browse files

New data

parent c7812e51
No related branches found
No related tags found
No related merge requests found
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
......@@ -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
......@@ -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,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment