Profile image

I’m making a quadcopter-style drone, does anyone have, or can make hover funky trees? 25 upvote prize!

4,778 GhostOfKyiv  3.4 years ago

Does anyone have a hover funky trees equation that changes the thrust to put the drone in a stable hover? I’d prefer if it could be toggled (if ag 1 is off it changes the input to vtol). Also, it should operate independent of the craft’s mass.

25 upvote prize!

  • Log in to leave a comment
  • Profile image
    18.7k NexusGaming

    @WagonTime i know how to make something hover (technically not funky trees style but...)

    3.4 years ago
  • Profile image
    161k spefyjerbf

    @BagelPlane you could multiply the entire expression by clamp01(Alt.max - Altitude).
    Where Alt.max is the maximum height, in meters. Note that Altitude can be switched for AltitudeAgl to evaluate the altitude above ground level.

    3.4 years ago
  • Profile image
    23.7k BagelPlane

    @spefyjerbf Quick question: how would you limit this up to a certain height? For instance, say you don't want the drone to go above 100 feet?

    3.4 years ago
  • Profile image
    6,281 HawaiiRanger

    I'm actually working on one now.

    3.4 years ago
  • Profile image
    161k spefyjerbf

    An easy hover code is as follows:
    Activate1 ? clamp01(-1 * rate(Altitude)) : VTOL
    .
    This code is very much entry-level. As a result, the ride might be a little bumpy when your drone is in hover mode. If that is the case, you can multiply the clamp01 term by a decimal such as 0.75, 0.5, 0.25. Alternatively, I can make some fancier code, but I can't do that quite yet bc finals.

    3.4 years ago
  • Profile image
    13.8k Kangy

    Man I wish I was good at maths :(

    3.4 years ago