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

ความคิดเห็น • 22

  • @BLACKOPS1499
    @BLACKOPS1499 ปีที่แล้ว +18

    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

  • @micahm5623
    @micahm5623 ปีที่แล้ว +1

    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

    • @yakcamkir
      @yakcamkir 11 หลายเดือนก่อน +2

      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.

  • @andregaspar7553
    @andregaspar7553 ปีที่แล้ว +3

    Awesome video 😎
    This is exactly what I was looking for to my quadcopter build.
    Can you please share your code on a text file?

    • @andregaspar7553
      @andregaspar7553 ปีที่แล้ว

      I've tried to replicate this with the breadboard but got too complex for me...

    • @Brenzo44
      @Brenzo44  ปีที่แล้ว

      Wow my bad! Completely forgot. I'll have that in the description as soon as you see this reply.

    • @andregaspar7553
      @andregaspar7553 ปีที่แล้ว

      @@Brenzo44 thx!
      I'm finally giving my first steps in Lua

    • @andregaspar7553
      @andregaspar7553 ปีที่แล้ว

      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?

    • @andregaspar7553
      @andregaspar7553 ปีที่แล้ว

      I might be having issues with the spin lock direction

  • @dreadpiratelenny1348
    @dreadpiratelenny1348 ปีที่แล้ว

    MOAR LUA

  • @Mernom
    @Mernom 11 หลายเดือนก่อน

    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.

  • @malificend8912
    @malificend8912 6 หลายเดือนก่อน

    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 ?

  • @lancerlancesnafon2048
    @lancerlancesnafon2048 ปีที่แล้ว

    You should learn Breadboard!

  • @meanderer9808
    @meanderer9808 ปีที่แล้ว

    Is there a way I can get it to hover in the air stationary when not in use instead of floating in the water

    • @Mernom
      @Mernom 11 หลายเดือนก่อน +1

      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.

    • @Mernom
      @Mernom 11 หลายเดือนก่อน +1

      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.

  • @jerrebrasfield4231
    @jerrebrasfield4231 11 หลายเดือนก่อน

    I just want my ship to use the turrets to tilt the fans

  • @griffz928
    @griffz928 11 หลายเดือนก่อน

    Doesnt work, did exactly what you did and nothing responded

  • @WolvesAssault
    @WolvesAssault 6 หลายเดือนก่อน

    Out of control keep spin around I think wrong direction on spinblock can't straight not worked on AI

  • @griffz928
    @griffz928 11 หลายเดือนก่อน

    I really wish theyd just let us do some more less complex stuff without all this programming garbage...