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
Control Pounder through MQTT - finished #725
Conversation
It is just to avoid index confusion. The datasheet starts the index from 0 as well.
- Packed pounder telemetries into `PounderTelemetry`. - Moved CPU temperature & Pounder telemetries into the telemetry buffer.
Just to make sense of variable accessing.
Co-authored-by: Robert Jördens <rj@quartiq.de>
If this doesn't differ from #610 you'll still need to address the issues raised there. |
src/hardware/setup.rs
Outdated
@@ -640,7 +640,7 @@ pub fn setup( | |||
|
|||
// Configure IP address according to DHCP socket availability | |||
let ip_addrs: smoltcp::wire::IpAddress = option_env!("STATIC_IP") | |||
.unwrap_or("0.0.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
Please do read your own diff.
The commits I've made on top of the old PR are rather easily visible here in the github UI, I think. And thankfully I didn't have much to address myself either; rather just follow directions of existing comments. Unfortunately, there's no magical way to move the comments over to another PR... or maybe if that's not enough I can wait for occheung for his additional helpful input, and maybe merge the changes into his old branch and continue from there. |
I am having problems to flash the stabilizer, which might be related to this PR. As suggested by @jordens if I use
|
In my opinion, it would make the most sense to commit directly to the previous branch so that we can keep all the review comments that still exist there. There's a lot of stuff that I have no idea if it's been fixed or not. |
@PhBrb Please open an issue for us to help you - commenting on this PR isn't a great way to get visibility on your issue, and I don't see how it's related to this PR, outside of pounder being present? The |
@ryan-summers I do think the issue is related to this PR. When I played around with the v0.7 release and got the Pounder running with it, I did not run into that issue. I was able to permanently flash with cargo run and cargo flash and control the Pounder through MQTT (uploaded here https://github.com/PhBrb/Stabilizer-Pounder/commit/6a4a6f8443bd73cd4a15d5633f10f55f182c2320 ). So it's not the hardware or the v0.7 that is causing it, but the changes made in this PR. Or I accidentally fixed an existing bug while playing around, but I doubt that. |
Hi @PhBrb - I thought I replied to you through email back in April (...GitHub email states that you can just reply through email, after all) - that didn't work for whatever reason. No big deal. Let me share the contents of these emails as they're still relevant: Thank you for putting light onto the issue. Since I tested the Pounder right after flashing (as still working on it) and CI tests run also right after flashing, it's not trivial to catch in usual development environment. And I agree, it's weird. I could reproduce the issue as well, but with a caveat - in my case it does not panic if it's power cycled with the ST-Link connected. If I disconnect it, it panics. The cause is the same as well. And yes I can also confirm it seems to be fine with 0.7.0 release. I looked through the changes of that PR and there was nothing really suspicious... However, (and thankfully for me!) it also happens if you try to use the master, I mean, main branch. I'll try to find the commit that introduced this bug; could be a random dependency update that did that. The commit that introduced the issue was this: 2f4e714 - But of course I had to go deeper into it and see what changed in the HAL to make that problem come... This was it: stm32-rs/stm32h7xx-hal@dd73c1e So if you clone the HAL, check out to 0.14.0, and comment out these two lines (638, 665; marked as beginning and end on GitHub): https://github.com/stm32-rs/stm32h7xx-hal/blob/b4fb6de6fb34ea77269a951ce366601e4bab3915/src/i2c.rs#L638,L665 then change the path to the library in Cargo.toml dependencies, it works again. Why adding a |
closing as stale. feel free to resurrect if there is momentum. |
Since @occheung is busy with other things in life, I was tasked with finishing his PR (see #610 for more details). It looked complete enough for me; I only applied comments and fixed minor issues.
Tested with a Pounder 1.1.