Well my drones use vectors, so using a simple ranger-based system would be inaccurate, and having them fly at a set level (The Z value of their vectors) would mean they wouldn't rise or lower from terrain beneath.
What they do is compare their target altitude to their present altitude. The distance of one or more rangers on their underside is subtracted from their target altitude and the remainder is added to the Z value of their vectors.
So if their target altitude is 100 units and their ranger outputs a distance of 70 units, they add 30 to the Z value of the base vector that they calculate from, causing them to rise up. If the same ranger later outputs a distance of 120 units, then the calculation subtracts 20 from the Z value and the drone descends. This works because, when the target vector is negated, vector thrusters thrust towards a given point at all times, so with a set vector the thrusters will hover at a given point until they receive a new point, hovering.


LinkBack URL
About LinkBacks





Reply With Quote




Bookmarks