Difference between revisions of "Template:Infobox/Part/antenna"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|Packet size|{{{packet size|2}}} Mit}} {{Infobox/Line|Packet interval|{{{packet interval<noinclude>|0.4</noinc...")
 
m (Update info)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|Packet size|{{{packet size|2}}}&nbsp;Mit}}
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Line|Packet interval|{{{packet interval<noinclude>|0.4</noinclude>}}}}}
+
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|antenna}}|{{#switch: {{uc:{{{type<noinclude>|direct</noinclude>}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{#expr: {{{packet electricity<noinclude>|10</noinclude>}}} * {{{packet size|2}}}}}&nbsp;E/Mit}}<noinclude>}}
+
|INTERNAL={{Infobox/Part/Dict|internal}}
 +
|DIRECT={{Infobox/Part/Dict|direct}}
 +
|RELAY={{Infobox/Part/Dict|relay}}
 +
|#default={{Dict|Unknown}}[[Category:Infobox/Part with missing parameters]]}}}}
 +
{{Infobox/Line|{{Infobox/Part/Dict|rating}}|{{SI prefix|{{{power<noinclude>|500000</noinclude>}}}}}{{Dict|m}}}}
 +
{{#ifeq: {{uc:{{{type<noinclude>|direct</noinclude>}}}}}|INTERNAL||
 +
{{Infobox/Line|{{Infobox/Part/Dict|packet size}}|{{{packet size|1}}}&nbsp;{{Dict|Mit}}}}
 +
{{Infobox/Line|{{Infobox/Part/Dict|transmission}}|{{Formatnum|{{#expr: {{{packet size|1}}}/{{{packet interval<noinclude>|0.35</noinclude>}}}}}|2}}&nbsp;{{Dict|Mit}}/{{Dict|s}}}}
 +
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|2=<abbr title="{{#expr: {{{packet electricity<noinclude>|24</noinclude>}}} / {{{packet interval<noinclude>|0.35</noinclude>}}} round 2}}&nbsp;{{Mark|echu}}/{{Dict|s}}">{{#expr: {{{packet electricity<noinclude>|24</noinclude>}}} / {{{packet size|1}}} round 2}}</abbr>&nbsp;{{Mark|echu}}/{{Dict|Mit}}}}}}<noinclude>
 +
}}
  
{{Tl|Infobox/Part}} module for [[antenna]]e. There needs to be a better representation for the packet interval, depending on the meaning. If it is the time between to packets the following formula should be used:
+
{{Tl|Infobox/Part}} module for [[antenna]]e. The transmission speed does not include the time to open and close the antenna.
{{Formula|math=\frac{1}{\Delta t} \cdot s|where=
 
* <math>\Delta t</math> is the interval in seconds
 
* <math>s</math> is the size of one packet
 
* This should result in <math>\frac{\text{Mits}}{\text{second}}</math>}}
 
This would be the formula for the template:
 
<pre>{{#expr: {{{packet interval<noinclude>|0.4</noinclude>}}}*{{{packet size|2}}}}}</pre>
 
  
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{Parameter Row|packet size|The size of one packet in Mits.|2}}
+
{{Parameter row|type|The type of antenna. The following values are supported (not case sensitive):
{{Parameter Row|packet interval|The <tt>packetInterval</tt> value.}}
+
* <tt>INTERNAL</tt>: These are the internal antennae in command pods and probe cores.
{{Parameter Row|packet electricity|Electricity consumption for each packet in E/packet. Does multiply the value by the packet size to show the electricity consumption per Mit.}}
+
* <tt>DIRECT</tt>: Basic antennae
 +
* <tt>RELAY</tt>: [[Relay]] antennae
 +
If the value is not known, it adds the page to [[:Category:Infobox/Part with missing parameters]].|}}
 +
{{Parameter row|power|The power of the antenna in m.}}
 +
{{Parameter row|packet size|The size of one packet in Mits.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>, otherwise <tt>1</tt>}}
 +
{{Parameter row|packet interval|The <tt>packetInterval</tt> value.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>}}
 +
{{Parameter row|packet electricity|Electricity consumption for each packet in {{mark|echu}}/packet. Does multiply the value by the packet size to show the electricity consumption per Mit.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 16:09, 9 September 2024

Antenna type Direct
Antenna rating 500 km
Packet size 1 Mits
Transmission speed 2.86 Mits/s
Electricity required 24 ⚡/Mits

{{Infobox/Part}} module for antennae. The transmission speed does not include the time to open and close the antenna.

Name Optional Description Default
type No The type of antenna. The following values are supported (not case sensitive):
  • INTERNAL: These are the internal antennae in command pods and probe cores.
  • DIRECT: Basic antennae
  • RELAY: Relay antennae

If the value is not known, it adds the page to Category:Infobox/Part with missing parameters.

power No The power of the antenna in m.
packet size Yes The size of one packet in Mits. Hidden if type is INTERNAL, otherwise 1
packet interval Yes The packetInterval value. Hidden if type is INTERNAL
packet electricity Yes Electricity consumption for each packet in ⚡/packet. Does multiply the value by the packet size to show the electricity consumption per Mit. Hidden if type is INTERNAL