Profile image

TutorialPlane w Battery

28.2k 32  9 months ago
49 downloads
Auto Credit Based on Jundroo's Tutorial Plane

If the engines aren't turning fast enough, the battery will go down whenever the control surfaces are used. If the engines are turning fast enough, the battery will slowly recharge. If the battery is dead, the control surfaces won't work. This code is a bit of a mess, but you're welcome to use or analyze it in any way as long as you credit me.

General Characteristics

  • Predecessor Tutorial Plane
  • Created On iOS
  • Wingspan 34.2ft (10.4m)
  • Length 25.3ft (7.7m)
  • Height 10.5ft (3.2m)
  • Empty Weight 3,491lbs (1,583kg)
  • Loaded Weight 3,624lbs (1,644kg)

Performance

  • Horse Power/Weight Ratio 0.275
  • Wing Loading 21.5lbs/ft2 (104.8kg/m2)
  • Wing Area 168.9ft2 (15.7m2)
  • Drag Points 1664

Parts

  • Number of Parts 37
  • Control Surfaces 5
  • Performance Cost 283
  • Log in to leave a comment
  • Profile image
    28.2k 32

    @ToeTips that probably is more realistic than what I have going on here.

    +1 6 months ago
  • Profile image
    24.6k ToeTips

    @32
    Thanks!
    The wheels have RPM inputs so I think I am going to stick with that. I want every function of the car (Driving, active aero, lights, turning etc) to consume power in different rates. Perhaps using rate(user input) = 0 that was stated earlier?

    6 months ago
  • Profile image
    28.2k 32

    @ToeTips oh yeah I was gonna reply but I totally forgot; sorry about that.
    So how this thing works is there are a few different variables:
    Off the top of my head, there are [input]control, RPM, and Battery.
    Battery is obviously the most important one, and it is in fact a few seperate expressions that could be combined into one. I don't remember exactly, but one of them basically says "if pitch, yaw, or roll are not equal to zero, the battery goes down a little bit. Otherwise, it stays at its current level."
    Another expression says that if the Total RPM of the rotors is higher than 40 (arbitrary number), the battery will recharge. For your car, you don't need any of my RPM variables, you can probably just use GS or IAS as those will be a good indicator of whether or not the wheels are turning.
    There's one more that just clamps it between 0 and 100, if you manage to combine the other two expressions into one expression this should be very easy to incorporate into the others.
    The [input]control variables are used as inputs for their respective control surfaces, and basically what they do is say "if the battery is at zero, don't move. Otherwise, move like normal."

    I hope this cleared it all up, this code is quite messy and not very self explanatory. If you have any questions let me know, you're honestly probably better at FT than me anyway lol

    +1 6 months ago
  • Profile image
    24.6k ToeTips

    Okay so the car is pretty much ready for the next step. Electricity, so about how the FT works?

    6 months ago
  • Profile image
    24.6k ToeTips

    Also can you explain the battery in more detail?

    6 months ago
  • Profile image
    24.6k ToeTips

    Your gonna need a "32's definitely safe battery packs"

    6 months ago
  • Profile image
    24.6k ToeTips

    @32
    Thank you. Now to see if the rotors work in that way.

    7 months ago
  • Profile image
    28.2k 32

    @ToeTips sounds cool! I’ll help you with it.

    +1 7 months ago
  • Profile image
    24.6k ToeTips

    @32
    I just got a semi amazing idea for this or two.
    Assuming theres a way to make floppy rotors send some kinda input, maybe by setting the variable currentAngle to 0 or 90 or something, basically if their angle changes then they send an input, your battery FT receives that input and it charges, do you see where im going here?

    Now we have essentially made a windmill which would be fun but this is simpleplanes! So:
    Glider with regenerative energy
    Basically a Glider that has a motor but it only works when there is power from the battery and charges when not in use and just gliding. I feel like this would greatly extend the range of the glider.

    It will probably use a push pull setup for the motors, one to charge and one to go.

    I think its possible to make a makeshift propeller engine with rotors and wings, though the liftScale of the wings to something higher. Maybe even use control bases!

    So what do you think and do you want to help me with this?

    7 months ago
  • Profile image
    25.9k Graingy

    holy carp guys its elon musk!!!!11!!

    +1 8 months ago
  • Profile image
    28.2k 32

    @OrderlyHippo that's pretty smart! I hadn't thought of that, but it is an interesting idea.

    +1 9 months ago
  • Profile image
    24.6k ToeTips

    Hmm, might be something I could implement on my build

    9 months ago
  • Profile image
    2,507 OrderlyHippo

    Might help if you use rate(user input) = 0 or maybe < 0.05. Then you can not use battery when the control surface is still because that’s how pistons consume power right? Move liquid, then stop.

    9 months ago
  • Profile image
    28.2k 32

    @ToeTips

    9 months ago