Skip to content

Commit

Permalink
bump submodule, lower rate (#40)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jr1221 authored May 3, 2024
1 parent d5a2dff commit 6f52e8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions calypsogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 6f52e8c

Please sign in to comment.