Basic Altitude Hold FT gyro Mk1 B (crude)
25.9k Kendog84
2.1 years ago
Auto Credit Based on Jundroo's Bush Plane
Crude altitude hold FT for gyro.
Part of my FT study (my first FT with if argument!).
This one will try to reach and maintain altitude at a fixed point once the plane enters FT activation range. It's very simple and will overshoot, but can stay within +/-10m range once stabilized.
You can edit the values to change the altitude you want to fly at. You can figure out how to add more if-clauses within the FT to make it able to do this at multiple altitude, but you can also have multiple of these with different values, for different altitudes.
(I'll probably go with the latter)
Feel free to use it on your build, link/credit would be much appreciated. Enjoy!
Specifications
Spotlights
- DISHWASHER2005 2.1 years ago
- YarisSedan 2.1 years ago
General Characteristics
- Predecessor Bush Plane
- Created On iOS
- Wingspan 39.8ft (12.1m)
- Length 34.8ft (10.6m)
- Height 13.9ft (4.2m)
- Empty Weight 5,810lbs (2,635kg)
- Loaded Weight 6,366lbs (2,887kg)
Performance
- Horse Power/Weight Ratio 0.157
- Wing Loading 16.4lbs/ft2 (80.3kg/m2)
- Wing Area 387.0ft2 (36.0m2)
- Drag Points 5077
Parts
- Number of Parts 95
- Control Surfaces 4
- Performance Cost 445
@Kendog84 I don’t know how to set a desired altitude…but rate just tells you how fast the thing in parentheses changes. So rate(Altitude) tells you how fast a plane is moving up, some positive number, or down, some negative number. Ex: rate(Altitude)<0? 1: 0 turn on if plane is falling otherwise turn off. Or you could make that 0 into Trim * 500 so when Trim goes up to 1, your plane pitches up until it’s at 500 meters. Happy to help!
P.S. Altitude is always measured in meters
Edit: I guess I do know how lol
@OrderlyHippo
Ok, I'm totally lost with rate(Altitude) thing.. if you have a good (and preferably not too complex) example for this, I'd be happy to study that. In the meantime, I think I'll have to publish my jet with the aforementioned FT of my own (bummer! Haha)
@OrderlyHippo
Thanks, that may be just what I needed! :)
I wanted to make it work on any altitude for a while, but couldn't tell which thing I had to use. I've even developed this system further (initially as a substitute for that) so I can manually tell what altitude I want it to climb to and stay at (works all right)
Still gotta try and understand how rate works though.
Also, thanks for the recommendation, I'll be sure to check out his builds, sounds pretty cool
You could have it work with rate(Altitude) so it works at whatever altitude you are currently at. Also you should check out Lemoose’s builds. He has some fun and simple funky trees code in a lot of builds. That’s how I first learned