ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.81k stars 17.27k forks source link

lua rc:override binding doesn't work in real cube, but works in sitl #21382

Closed davidbuzz closed 2 years ago

davidbuzz commented 2 years ago

Bug report

When loading /libraries/AP_Scripting/examples/RC_override.lua into ardupilot on a Cube, it crashes.

Please describe the problem

Version ArduCopter V4.2.2 stable(4fcfa4b2) - but it probably doesn't matter ??

Platform [ X] All [ ] AntennaTracker [ X] Copter [ ] Plane [ ] Rover [ ] Submarine

What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc) Cube Orange, but it doesn't matter so long as sescripting is enabled.

Logs 8/08/2022 5:40:39 PM : RC_override example 8/08/2022 5:40:39 PM : Lua: /APM/scripts/RC_override.lua:8: attempt to call a nil value (method 'set_override')

IamPete1 commented 2 years ago

It only recently went in, https://github.com/ArduPilot/ardupilot/pull/20241 Looks like its just not in stable?

davidbuzz commented 2 years ago

It went in master in March, Copter stable was released in May, should b there

IamPete1 commented 2 years ago

It was close, 4.2 went into beta at the start of March. The bindings were merged at the end of March.

davidbuzz commented 2 years ago

:-(