+ Reply to Thread
Results 1 to 8 of 8

Thread: How do I hover using only thrusters?

  1. #1
    Wirererer Fliecheese will become famous soon enough Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    193

    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- has a spectacular aura about -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
    2,239

    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

    if you sign up using my link you get extra space!

    also this

  3. #3
    Wirezard

    Matte is just really nice Matte is just really nice Matte is just really nice Matte is just really nice Matte is just really nice Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,151

    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


    Wire FPGA

  4. #4
    Wirererer Fliecheese will become famous soon enough Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    193

    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 will become famous soon enough dpidcoe's Avatar
    Join Date
    Apr 2008
    Location
    san diego
    Posts
    253

    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
    729
    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- has a spectacular aura about -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
    2,239

    Default Re: How do I hover using only thrusters?

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

    if you sign up using my link you get extra space!

    also this

  8. #8
    Wirererer Fliecheese will become famous soon enough Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    193

    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 Technical Support
    Replies: 6
    Last Post: 05-28-2008, 12:13 PM
  5. Hover chip with thrusters
    By SenSai in forum Technical 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots