Enabling scripting crashes software

Hi,

I have created a custom ardupilot build for my drone. However I would like to use lua scripting for this build as well. Yet everytime I enable scripting in the params the flight controller is no longer able to make a stable connection via the controller or usb anymore, showing ‘internal error’. When compiling my custom build I have used --enable-scripting. The .lua script runs fine on the basic copter build and the custom build runs fine without scripting enabled. I have tried to solve this problem for some time now but really can’t figure it out. Does anyone know how to solve this?

This is a bit like saying “I customized my car and now it only runs sometimes,” and then expecting a specific fix. There isn’t nearly enough detail to provide a solution.

1 Like

The issue is most times lack of memory. Disable more features that you do not need, so that there is enough memory for the scripting.

But you are not specifying FW version, nor FC hardware. So like @Yuri_Rage said, we can not help you, we can only speculate.

1 Like