How to read RC input in Lua?

Hi everybody,

There is no binding to read RC pwm input in Lua in current stable version. And also there’s no explanation how to convert c++ declarations into binding description strings. So could anybody help with subject?

Thank you in advance.

You have to use 4.1-dev.

Unfortunately I cannot use 4.1-dev as it causes error 0x8000 on boot which I can’t fight till now. (PreArm: Internal errors 0x8000 l:404 main_loop_stk after upgrading to latest 4.1.0-dev). But I’ve made simple kludge: copied get_pwm member of RC_Channels class from master branch to Rover 4.0 as well as relevant strings in bindings.desc. Recompiled and works ok.