Pixhawk 2.4.8 scripting stopped immediately

Hi,

We are unable to get scripts to run.

Pixhawk 2.4.8, 2MB flash memory, ArduCopter V4.4.3

Stopping and restarting scripting immediately reverts to stopped, unless we loaded the script without rebooting the Pixhawk, in which case we get “Lua: open directory (/APM/scripts) failed”, followed by “Lua: no scripts to run”

SCR_ENABLE = 1
SCR_HEAP_SIZE = 19880 (previously got memory errors before adjusting memory)
SCR_DIR_DISABLE = 0

Script loaded into /APM/scripts

image

The script:

image

Any guidance is appreciated.

It uses a F405 chip, it’s better to use a H7 processor

I’ve got a F7 based flight controller that would barely run scripting, but it had other work to do too :slight_smile: where the H7 I’ve got wont even notice if scripting is running plus a bunch of other workload.
So when people say to upgrade to a H7, in this case it really is a very appropriate answer.

Try disabling SRTL and Terrain, and any other optional features.

SRTL_POINTS,0
TERRAIN_ENABLE,0

If you are running harmonic notch filters, change to throttle-based and keep it very simple. No per-motor notches and loop-rate trickery. Provide a .bin flight log if you need more suggestions.