I broke a seeding needle because the robot seems to have stalled at some point and lost its home position. It then continued the script. I would like to prevent this in my code.
How to detect stalling in lua to make the robot stop or do something else? Somekind of event listener.
I’m not sure how I could integrate an assertion block into a lua block. Unless, I must run an assertion block instead of a lua one which would be quite counterintuitive.
Where can we make feature request? An error callback function in any movement related functions would be quite useful.
Open a new post in this forum and enter it into the Feature Requests category, or, if you have a GitHub account then open a new Issue on the farmbot_os repository and mark it clearly as a Feature Request
The FarmbotOS code which executes our Sequence (a temporary Erlang process) is strictly single-threaded (by design) and does not use Events so any callback facility gains you not much.
I’m sure @roryaronson will set our thinking straight on this question