Receive mavlink messages through lua script

Hi,
I followed the steps mentioned in this presentation. but I am getting the following error
attempt to index a nil value (global ‘mavlink’)

from the syntax I understand, to use “mavlink:” this alias is to be present in the bindings.desc which is not present. how can I add this binding

thanks

1 Like

I ran into this, mavlink bindings appeared only in new firmware versions. Check if there are fields
singleton mavlink manual init lua_mavlink_init 2 .... in the bindings file

Bindings are located in libraries/AP_Scripting/generator/description/bindings.desc