-
Notifications
You must be signed in to change notification settings - Fork 126
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
Enlargable Config Packet #163
base: main
Are you sure you want to change the base?
Conversation
Intermediate commit nr.2 is only for illustration purposes What's in
What has changedIn past the (old) config packet request/response phase got trigger by LL whenever ROS became live (detected via heartbeat packet). This got reverted now because it will save at least one packet. General config packet handlingWhenever HL detects missing LL-status packets for > 1 sec. it assumes that the mower just booted or LL rebooted i.e. due to flashing a new FW, and send a config packet (and response request) with HL's configured LL values, which are normally not any! Yes, (in my opinion) HL does not need to know any specific LL values in >90?%, because it is HL. LL will receive this HL-config packet, do a sanity check where it has hardware limits like (charge cutoff voltage/current), and send the used/adjusted valued back to HL as "response". When HL receives LL's response, dependent on what/if something changed in comparison to what requested before, or did not know before (because HL does not know much about LL), it will send a dynamic reconfigure and inform mower_logic about the relevant/changed values, which are used i.e. for battery-low calculations (go home), sensor view, ... Similar will happen if one is changing values via dynamic reconfigure (mower_logic). Change get compared with what is in, if changed will inform LL with a new config (including the response request) and will align once response get received. Did a couple of tests with the two implemented vales. Works pretty good. A full packet round, even if with a to large value, take < 1s. What's badI don't like the static member checks in |
…m/ClemensElflein/open_mower_ros into feature/Enlargeable-Config-Packet
Same here. In my opinion, all is done. Would love to see a generic review before asking for tester @ discord. |
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.
LGTM
In relation to ClemensElflein/OpenMower#110
Roadmap:
🔨 = Currently working on