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.