+ Reply to Thread
Results 1 to 8 of 8

Thread: How do I hover using only thrusters?

  1. #1
    Wirererer Flieboy's Avatar
    Join Date
    Jul 2008
    Posts
    243

    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
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    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 ^_^

  3. #3
    Developer Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,109

    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 Flieboy's Avatar
    Join Date
    Jul 2008
    Posts
    243

    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's Avatar
    Join Date
    Apr 2008
    Location
    san diego
    Posts
    250

    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's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    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

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  7. #7
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: How do I hover using only thrusters?

    So I was at least on to something with the
    Code:
    - $Altitude
    ^_^

  8. #8
    Wirererer Flieboy's Avatar
    Join Date
    Jul 2008
    Posts
    243

    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. Whats different about vector thrusters compared to wired normal thrusters?
    By mjmr89 in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 11-15-2008, 12:59 PM
  2. Vector thrusters Vs. Normal wired thrusters
    By mjmr89 in forum Wiremod General Chat
    Replies: 3
    Last Post: 08-17-2008, 08:01 PM
  3. Replies: 11
    Last Post: 06-01-2008, 05:21 AM
  4. Vector Thrusters vs Wire Thrusters
    By Ergzay in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 05-28-2008, 01:13 PM
  5. Hover chip with thrusters
    By SenSai in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 11-10-2007, 05: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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots