Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump submodule, lower rate #40

Merged
merged 26 commits into from
May 3, 2024
Merged
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
Loading