×
Create a new article
Write your page title here:
We currently have 277 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    Gyro: Difference between revisions

    Content deleted Content added
    No edit summary
    Changed some wording, added a section about a practical use for its stabilization feature as well as another section dedicated about programming and fixed a broken link
     
    (15 intermediate revisions by 9 users not shown)
    Line 1: Line 1:
    {{Object
    Gyro, Part used to create missiles, miners and robots.
    |title1 = {{PAGENAME}}
    The Gyro can be programmed with:
    |image1 = Gyro.png
    All seek everyone.
    [[File:Gyro|thumb]]
    AllExcept seek everyone except the name you put on it example: AllExcept hello.
    |type = Electrical, Logic
    |recipe = {{#invoke:GetPartInfo|getField|Recipe}}
    |raw_recipe = {{#invoke:GetPartInfo|getField|Raw recipe}}
    |malleability={{#invoke:GetPartInfo|getField|Malleability}}
    }}


    The '''Gyro''' is a part that is commonly used as a targeting system for contraptions such a [[Building_A_Base#Missiles|missiles]], it will orient the front of itself towards a chosen target rotating anything it is welded to in the process. The front of the gyro is represented by a white circle.
    <br><br><br>
    In its default state (Unpowered), it will directly aim upwards unless the option <code>DisabledWhenUnpowered</code> is on, in which it will simply stop aiming. This feature can be used to stabilize structures that rely on physics to float, for example, a structure built with [[Balloon|Balloons]] which will inevitably tip over to its heavier side without a gyro.


    If powered, it can adjust its orientation to aim at an object it is configured to seek, to choose what to target, you must simply enter text in the option <code>Seek</code>. If seek is blank it will not aim at anything.
    Radar seek the parts Radar can be used with AllExcept or All.
    The Gyro has an option called <code>TriggerWhenSeeked</code>, which when activated will send a trigger signal every tick as long as it has a valid target.


    === Player targeting ===
    To use a Gyro to target a player, simply enter the player's ID (Not their display name), putting multiples names will make the gyro aim at the closest player in its list. Example : "Player1 Player2".
    Writing "All" into the Gyro will cause it to aim at every player.
    Writing "AllExcept" will target every player expect those written after. Example: "AllExcept Player2".


    === Part targeting ===
    if you put Radar (material)Deposit it will chase a deposit StoneDeposit doesn't work.
    To use a Gyro to target a part, you must first enter "Radar" then you need to write the name of the part. Example: "Radar PowerCell".
    TriggerWhenSeek Gyro will emit a trigger signal when it detects the target.
    You can also radar ore deposits, simply by putting the name of the ore with "Deposit" attached. Example: "Radar IronDeposit".
    MaxTorque to control moves of the gyro.

    DisableWhenUnpowered disables the gyro if no power.
    === Programming ===
    if you put a gyro without power it can still be used to a part look only at the side of the gyro its looking.
    [[Microcontroller|Microcontrollers]] can use the gyro to target an arbitrary location expressed as a Vector3 using Gyro:PointAt().
    Gyro are a important part on mostly of builds but can be replaced with lifesensor and servos.

    also Gyro can be configured with a Microcontroller
    === Other ===
    power usage per sec 2.
    *The commands "Min" and "Max" configure the minimum and maximum distance the gyro can aim at, so if it was "Min80 Max400" it will aim at targets that are from 80 to 400 studs away, ignoring any target less than 80 studs away or more than 400 studs away.
    recipe 4 wires and 8 of iron.
    *The commands "TrigMin" and "TrigMax" configure the minimum and maximum distance at which the <code>TriggerWhenSeeked</code> option will send signals, for example if it was "TrigMin80 TrigMax400" it would send a signal if the target was more than 80 studs away but less than 400 studs away.
    Min, can be used to detect parts more far than the number like Min10 detects parts at 11 studs
    *The configuration <code>MaxTorque</code> changes how much force the gyro an apply, it is recommended to set it low for stationary devices, as to not break them due to the excessive force applied.
    Max, Max distance the gyro can detect like Max100 if the part is more far than 100 studs the part will no be detected
    *Inputting "Sun" as the target will make it target the local star or black hole.
    MaxInf extends range to inf
    *The gyro can be controlled by a [[Microcontroller]] using the function <code>:PointAt()</code> [https://github.com/iimurpyh/pilot-lua/wiki/Gyro More info here]
    end.

    made by IvanAreEpic
    === In-game description ===
    {{#invoke:GetPartInfo|getField|Description}}

    ====Malleability====
    This part cannot be resized. Default size: 2x1x2

    ==Configuration==
    {{#invoke:GetPartInfo|getField|ConfigurationLarge}}

    ====Power consumption====
    Consumes 2 Power per second
    [[Category:Parts]]
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Jo857294 • 8 days ago
  • 116.111.185.163 • 21 days ago
  • 116.111.185.163 • 21 days ago
  • 116.111.185.163 • 21 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.