Servers by jDrones

Lua Scripts using Velocity Control

@rmackay9 Thanks, nice examples of scripting. But I think the link to the vertical circle script should be:

Hey @rmackay9
Not able to enable scripting on Cube Purple. Getting the following message.

@Mallikarjun_SE,

Yes, scripting takes up quite a bit of memory. On Cube Orange (and probably Holybro Durandal) it’s fine but on most other boards, if you’re running Copter, you’ll need to disable some other features. Try these:

  • TERRAIN_ENABLE = 0 (turn off the SRTM database used for terrain following during missions)
  • EK2_IMU_MASK = 1 (turn off the backup EKF)

Hey @rmackay9
I use terrain follow all the time since I stay at a hilly region. EK2_IMU_MASK=1 is default for CubePurple.
I switched from Master to stable. It got initialized.
Thank you.

1 Like

@Mallikarjun_SE,

OK great. Scripting is being actively enhanced these days though so you’ll find that the features available to scripting with Copter-4.0.3 are a bit less than we have in master. Anyway, thanks for trying it out!

Hi Randy is this the camera please,https://www.mouser.co.uk/ProductDetail/Intel/82637BRPLHV?qs=u16ybLDytRb4k4WMtRhqgg%3D%3D dogie no likie Randy treat money gone on quad lol if this is the one will order tomorrow

@MartyMcFly,

Yes, that’s the camera I used in this recent video. You’ll need an RPI4 to go with it and you might want to get one of Stephen Dade’s PiConnectLite boards to make wiring easier but this is optional

1 Like

im strugling getting info on the PI14 its coming up here as a form for the goverment,

https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

1 Like

Thankyou Corrado_Steri

Hey @rmackay9
Couldn’t get scripting working on Cube purple with AC4.0.3 stable even with terrain disabled. I can’t find the scripts folder at all in MAVFtp. I bought couple of Cube Purples for ground tests and other beta tests, But It already feels outdated. Scripts don’t run, Compass is not probed by default to have Fast sampling. Looks like H7 is the good investment.
Update: No luck with latest Dev with terrain disabled.

1 Like

you will have to make the scripts folder

1 Like

It said creating the directory failed. Should I make the folder on the sd card manually?

1 Like

It should be possible via MAVFtp, try it manually and see if scripts will work at all, the simple loop is the best for debugging.

2 Likes

No luck after creating folder. Scripts aren’t getting initialized.



Cube Purple.param (17.9 KB)

you should get a message on boot, you will have to be quick on the connect to catch it.

1 Like

Yep! Got Hello World. I’ll other scripts.

1 Like

well order parts to give this a go,also ordered back to front jacket and padded cell for when my 1/2 brain cell explodes think this will keep me occupied during these tough times thank you Randy im a happy OAP

1 Like

Hey @rmackay9
Had no luck with LED neopixel scripting on stable version. The latest master started accepting scripts on my Cube purple somehow. And it works. Thanks to @iampete for sample scripts.

Disclaimer: Don’t follow the servo rail power connection as shown in the video.

1 Like

@Mallikarjun_SE,

OK, it’s very possible that the scripting support for LED control isn’t in the stable releases yet.
Great that you got it working and it should work with Copter-4.1.x if not earlier.

Servers by jDrones