From 5bb7cae3ec1e6faa740257d1b36a75e97b7c3394 Mon Sep 17 00:00:00 2001 From: Jack Rubacha Date: Fri, 3 May 2024 15:37:42 -0400 Subject: [PATCH] bump submodule, lower rate (#40) * bump * bump * bump * bump * bump * bump to bms yaml branch * lessen delay * lessen delay 2 * charger * charger w yaml * bump * bump + bms * bump + charger endian * bump * mpu fault * bump * bump * bump * bump * bump * bump * bump * bump * bump * bump * Updated submodule Embedded-Base --- Embedded-Base | 2 +- calypsogen.py | 3 +++ src/mqtt.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Embedded-Base b/Embedded-Base index 80d7820..ea4aed7 160000 --- a/Embedded-Base +++ b/Embedded-Base @@ -1 +1 @@ -Subproject commit 80d7820d03900c96a9f736a58b7abcb567155ccd +Subproject commit ea4aed794208c1b280f6ce805f7c2a7b805e0cec diff --git a/calypsogen.py b/calypsogen.py index 28ca733..ab24e1d 100644 --- a/calypsogen.py +++ b/calypsogen.py @@ -23,10 +23,13 @@ mpu_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/mpu.yaml", "r")) wheel_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/wheel.yaml", "r")) dti_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/dti.yaml", "r")) +charger_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/charger.yaml", "r")) + bms_messages.msgs.extend(mpu_messages.msgs) bms_messages.msgs.extend(wheel_messages.msgs) bms_messages.msgs.extend(dti_messages.msgs) +bms_messages.msgs.extend(charger_messages.msgs) result = cangen.RustSynth().parse_messages(bms_messages.msgs) diff --git a/src/mqtt.rs b/src/mqtt.rs index b20be6f..6fa97ec 100644 --- a/src/mqtt.rs +++ b/src/mqtt.rs @@ -45,7 +45,7 @@ impl Client for MqttClient { Ok(_) => (), Err(e) => println!("Error sending message: {:?}", e), } - thread::sleep(Duration::from_millis(1)); + thread::sleep(Duration::from_micros(100)); } else { println!("Client not initialized, please set host first and connect") }