AHRS Lua Function

New to LUA scripting.

Getting an error from the script “call to nill value” for ahrs:get_posvelyaw_source_set()).

But in the LUA docs it says it exists.

Currently using rover 4.1

Looks like you’ll need to be on Rover 4.3 or higher to use that binding.

1 Like

How did you determine this? Just trying to see how to better read the documentation

I looked at the source branches on GitHub. The getter function didn’t exist until 4.3.

Was a little tricky, though, because the binding appears to sort of magically predate the existence of the bound function in AHRS.h. Maybe an artifact of a backport.

1 Like