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.
I’m making a quadcopter-style drone, does anyone have, or can make hover funky trees? 25 upvote prize!
4,778 GhostOfKyiv
4.0 years ago
@WagonTime i know how to make something hover (technically not funky trees style but...)
@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.
@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?
I'm actually working on one now.
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.
Man I wish I was good at maths :(