+ Reply to Thread
Results 1 to 8 of 8

Thread: How do I hover using only thrusters?

  1. #1
    Wirererer Fliecheese is on a distinguished road Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    145

    Default How do I hover using only thrusters?

    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.

  2. #2
    no brain, no headache

    -HP- has a spectacular aura about -HP- has a spectacular aura about -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    1,224

    Default Re: How do I hover using only thrusters?

    Probably using delta?

    Try this:
    Code:
    Thrust = -$Altitude
    
    Oh wait nevermind forget that. It probably does not work at all, I suck at things like that
    sry 4 my bad spelign, but enligh is my 2 langage



  3. #3
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,096

    Default Re: How do I hover using only thrusters?

    Code:
    @inputs Ranger Height
    @outputs Trust
    @persist Altitude
    
    Altitude = Height-Ranger
    
    Thrust = Altitude + $Altitude*5
    
    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.
    "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


  4. #4
    Wirererer Fliecheese is on a distinguished road Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    145

    Default Re: How do I hover using only thrusters?

    I am sure I tried that and it bobbed up and down.

  5. #5
    Wirererer dpidcoe is on a distinguished road dpidcoe's Avatar
    Join Date
    Apr 2008
    Location
    san diego
    Posts
    174

    Default Re: How do I hover using only thrusters?

    Thrust = Altitude + $Altitude*5
    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.

  6. #6
    Wire Sofaking Fizyk will become famous soon enough Fizyk will become famous soon enough Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    586

    Default Re: How do I hover using only thrusters?

    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
    

  7. #7
    no brain, no headache

    -HP- has a spectacular aura about -HP- has a spectacular aura about -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    1,224

    Default Re: How do I hover using only thrusters?

    So I was at least on to something with the
    Code:
    - $Altitude
    
    sry 4 my bad spelign, but enligh is my 2 langage



  8. #8
    Wirererer Fliecheese is on a distinguished road Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    145

    Default Re: How do I hover using only thrusters?

    Christ I never thought of using delta in it! That makes it so much easier. Thanks a lot guys.

+ Reply to Thread

Similar Threads

  1. Replies: 7
    Last Post: 11-15-2008, 11:59 AM
  2. Vector thrusters Vs. Normal wired thrusters
    By mjmr89 in forum Wiremod General Chat
    Replies: 3
    Last Post: 08-17-2008, 07:01 PM
  3. Replies: 11
    Last Post: 06-01-2008, 04:21 AM
  4. Vector Thrusters vs Wire Thrusters
    By Ergzay in forum Help & Support
    Replies: 6
    Last Post: 05-28-2008, 12:13 PM
  5. Hover chip with thrusters
    By SenSai in forum Help & Support
    Replies: 4
    Last Post: 11-10-2007, 04:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts