Probably using delta?
Try this:
Oh wait nevermind forget that. It probably does not work at all, I suck at things like thatCode:Thrust = -$Altitude![]()
I would like to keep sometihng in the air only using thrusters on the bottom, maybe using them to stabilize as well but it always ends up bouncing up and down a lot. What is the equation or way in which to keep it hovering just using thrusters? Thanks for any help.


Probably using delta?
Try this:
Oh wait nevermind forget that. It probably does not work at all, I suck at things like thatCode:Thrust = -$Altitude![]()
This is untested, but it should work. Wire a ranger which measures altitude up to the Ranger-input, your desired altitude to the Height-input and your thrusters to the Thrust-output.Code:@inputs Ranger Height @outputs Trust @persist Altitude Altitude = Height-Ranger Thrust = Altitude + $Altitude*5
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
I am sure I tried that and it bobbed up and down.
Should be:Thrust = Altitude + $Altitude*5
If you're moving upwards, your delta will be positive. You want less thrust if you're moving up so therefore you should subtract that delta from the total thrust.Thrust = Altitude - $Altitude*5
When Altitude is Height - Ranger, if you move up it decreases, so Matte's code is right. I would use this instead:
Code:@inputs TargetAltitude @outputs Thrust @persist Altitude if(first()) {runOnTick(1)} Altitude = entity():pos():z() Thrust = TargetAltitude - Altitude - $Altitude * 5
My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
My tutorials: applyTorque - Quaternions - PID controllers
Some other things I made: FT Chip - RK4 Solar System


So I was at least on to something with theCode:- $Altitude![]()
Christ I never thought of using delta in it! That makes it so much easier. Thanks a lot guys.
Bookmarks