Deadreckon home lua script not working giving error

Hey folks,
I were testing this lua script to add more functionality to my copter and getting this error:
attempt to compare number with nil" in line number 139.
Please guide me how to resolve this error as I am new to lua scripting

Arducopter version is V4.3.0
This is an error which I am getting in messages

I am getting the same error - has anyone found the fix?

See here: Deadreckon home lua script not working - ArduPilot Lua Scripting - ArduPilot Discourse

No need to double post.

1 Like