LUA Quadcopter and LUA Propulsion Tutorial! | From the Depths Guide
ฝัง
- เผยแพร่เมื่อ 12 ก.ย. 2024
- Full code with yaw behaviour: pastebin.com/1...
Full craft: steamcommunity...
In this tutorial I build a tiltrotor quadcopter using spin blocks and LUA!
I also run through how to use LUA propulsion, LUA spin blocks, and how to use spin blocks to create a tiltrotor.
#fromthedepths #ftd
Please, Please, PLEASE do more LUA tutorials. Nobody does any updated LUA vids and i love learning about this.. I can't be the only one ! :D Much love brotha
You could make a spin block angle function and use a parameter rather than using a bunch of different functions multiply by -1 on the reversed spin blocks
Having put 80-odd hours into trying exactly this, my conclusions are: 1. Calculating the angles is not difficult. 2. You can do some amazing things like having your thrusters automatically compensate when one is damaged or destroyed. 3. Any craft you build using this will be completely uncontrollable because Spinblock rotation speed is far too slow, no matter how much tuning you do with your code, PIDs or anything else. Unless some much faster (twenty times faster at least) Spinblocks are added, then this is a frustrating dead end.
Awesome video 😎
This is exactly what I was looking for to my quadcopter build.
Can you please share your code on a text file?
I've tried to replicate this with the breadboard but got too complex for me...
Wow my bad! Completely forgot. I'll have that in the description as soon as you see this reply.
@@Brenzo44 thx!
I'm finally giving my first steps in Lua
I wasn't able to make my quadcopter behave like yours...
How are you controlling pitch and roll?
The rotors are no "auto" aren't they?
I might be having issues with the spin lock direction
MOAR LUA
Having a different function for each possible orientation you want is a bit wasteful... Can have a single function that accepts angle as a second argument, applies it as is to the first two, then applies it's negative to the other two.
Edit: after trying it out for myself, I found out that using custom axis as input instead of complex controller stimulus can work better, as you can have a different one for each prop, and you can also control the power level, which makes a hovering behavior possible.
I dont understand how your comkplex controller layout looks like a hybrid of the air and complex layouts.... i can only get complex to show letters on the keys and only the airial manouvers are shown on the vehicle controller.... is this out of date ?
You should learn Breadboard!
Is there a way I can get it to hover in the air stationary when not in use instead of floating in the water
Should be pretty easy. When in neutral, check it's height: if it's above, say, 10, it's flying, so don't turn off the rotors completely.
Just need to figure out how to get them to spin just fast enough to keep your height stable.
If you replace the complex controller input with custom axis, you can gain access to partial input levels, rather that just on/off. It requires a bit more work to make it function, though.
I just want my ship to use the turrets to tilt the fans
Doesnt work, did exactly what you did and nothing responded
Out of control keep spin around I think wrong direction on spinblock can't straight not worked on AI
I really wish theyd just let us do some more less complex stuff without all this programming garbage...