Setting safe Z from within LUA code

Has anyone found LUA code to set the safe Z setting?
I found this to read it

safe_z() but cannot see how to write it.

You can set the value with the SAFE HEIGHT setting in the settings panel. Docs: Axes | FarmBot Software Documentation

Oh wait, you were asking how to do it from Lua :sweat_smile: You can use update_fbos_config({safe_height = 0})

You can update every fbos config value with that helper. Here is the documentation for the helper and here is list of available fields.

1 Like

This is great. This has uncovered a new set of documentation for me.
Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.