Actions

Editing PowerTransmitter

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 38: Line 38:
 
The Norsec Wireless Power Transmitter is an uni-directional, A-to B, far field microwave electical transmission system. The rotatable base transmitter delivers a narrow, non-lethal Microwave beam to a dedicated base receiver.
 
The Norsec Wireless Power Transmitter is an uni-directional, A-to B, far field microwave electical transmission system. The rotatable base transmitter delivers a narrow, non-lethal Microwave beam to a dedicated base receiver.
  
The transmitter must be aligned to the base station in order to transmit any power. The brightness of the transmitter's collimator arc provides an indication of transmission intensity. Note that there is an attrition over longer ranges, so the unit requires more power over greater distances to deliver the same output.
+
The transmitter must be aligned to the base station in order to transmit any power. The brightness of the transmitter's collimator arc provides an indication of transmission intensity. Note that there is an attrition over longer ranges, so the unit requrires more power over greater distances to deliver the same output.
 +
 
  
 
==General behaviour==
 
==General behaviour==
 
*5kW is the maximum PowerPotential that can be transmitted, this amount is reduced by distance.
 
*5kW is the maximum PowerPotential that can be transmitted, this amount is reduced by distance.
 +
*Device rotation matters. The default placement is to point the data port north (towards 0° on the compass), other directions will require adding or subtracting angles after doing the math below.
 +
*The coordinates of these devices will change when the head moves.
 +
*Both structures and terrain will block the beam, but once a beam is formed it will no longer be blocked by building inbetween (will a power outage break the link?).
 
*Unaffected by storms.
 
*Unaffected by storms.
*Using two emitters on the same receiver doesn't appear to work
+
*Using two emitters on the same reciever doesn't appear to work
*A Logic Transmitter can mirror receivers, but not emitters.
+
*A Logic Transmitter can mirror recievers, but not emitters.
*The coordinates of these devices will change slightly when the head moves.
+
 
*Both structures and terrain will block the beam. Once a beam is formed it will no longer be blocked by building things between them.
 
*When these devices are built their placement rotation is important. The easiest way is to point the data-port to the north (0° on the space suit compass), otherwise a horizontal correction angle must be added or subtracted when doing the math.
 
*When the device head is being rotated horizontally it is rotating in the opposite of the expected direction, this must be compensated for when doing the math.
 
  
 
==Range==
 
==Range==
Line 66: Line 67:
  
 
==Alignment formulas==
 
==Alignment formulas==
All dataports points north, the delta values are calculated from: "receiver coordinate" - "emitter coordinate"
+
All dataports points north, the delta values are calculated from: "reciever coordinate" - "emitter coordinate"
 
 
Horizontal for "emitter" = atan2( delta-x / delta-z ) * 180 / pi
 
<br>Vertical for "emitter" = 90 + atan( delta-y / sqrt( (delta-z)^2 + (delta-x)^2 ) ) * 180 / pi
 
 
 
Horizontal for "receiver" = 180 + Horizontal for "emitter"
 
<br>Vertical for "receiver" = 180 - Vertical for "emitter"
 
 
 
Comments:
 
<br>When the data-port points north, +0° is added to the Horizontal rotation.
 
<br>When the Vertical rotation is 90° the device head points towards the horizon, 90° must be added because when delta-y is 0 (no height difference) then atan() will be 0
 
<br>Both atan2() and atan() uses radians for the angle, radians are converted to degrees by multiplying with 180 / pi
 
<br>atan2(x/z) should be z/x in a normal situation, but it has been inverted to compensate for the devices inverted rotation direction
 
<br>atan(y/x) uses Pythagoras theorem to set x as the horizontal-plane distance between emitter and receiver
 
 
 
==IC script==
 
<pre>
 
##POWER TRANSMITTER ALIGNMENT##
 
#When the alignment is complete, this IC housing..
 
#..and the Logic Transmitter can be unpowered
 
 
 
#Power Transmitter data-port must point NORTH
 
#Power Receiver data-port must point NORTH
 
 
 
#transmitter = Microwave Power Transmitter
 
alias transmitter d0
 
#receiver = Logic Transmitter linked to the..
 
#..Microwave Power Receiver
 
alias receiver d1
 
 
 
alias deltaX r13
 
alias deltaZ r14
 
alias deltaY r15
 
define pi 3.1415
 
  
main:
+
Horizontal angle at "emitter" (in radians) = atan2( delta-x / delta-z )
yield
+
<br>Horizontal angle at "emitter" (in degrees) = Horizontal angle at "emitter" (in radians) * 180 / pi
#calculate delta values
+
<br>Horizontal angle at "reciever" (in degrees) = 180 + Horizontal angle at "emitter" (in degrees)
l r0 receiver PositionX
 
l r1 transmitter PositionX
 
sub deltaX r0 r1
 
l r0 receiver PositionZ
 
l r1 transmitter PositionZ
 
sub deltaZ r0 r1
 
l r0 receiver PositionY
 
l r1 transmitter PositionY
 
sub deltaY r0 r1
 
  
#Horizontal for "transmitter"
+
Horizontal Hypotenuse (option 1) = delta-z / cos(Horizontal angle at "emitter" (in radians))
#atan2(deltaX/deltaZ)*180/pi
+
<br>Horizontal Hypotenuse (option 2) = delta-x / sin(Horizontal angle at "emitter" (in radians))
atan2 r0 deltaX deltaZ
+
<br>Horizontal Hypotenuse (option 3) = use pythagoras theorem
mul r0 r0 180
+
<br>Vertical angle at "emitter" (in degrees) = 90 + atan( delta-y / Horizontal Hypotenuse ) * 180 / pi
div r0 r0 pi
+
<br>Vertical angle at "reciever" (in degrees) = 180 - Vertical angle at "emitter" (in degrees)
s transmitter Horizontal r0
 
  
#Horizontal for "receiver"
 
#180 + Horizontal for "emitter"
 
add r0 180 r0
 
s receiver Horizontal r0
 
  
#Vertical for "transmitter"
+
===Notes===
#atan(deltaY/sqrt(deltaX^2+deltaZ^2))*180/pi+90
+
*The vertical calculation uses atan, the horizontal uses atan2.
mul r0 deltaX deltaX
+
*The delta values are not constants, but they only change a little bit.
mul r1 deltaZ deltaZ
+
*When delta-z = 0, atan2( delta-x / delta-z) still works
add r0 r0 r1
+
*When calculating the Horizontal Hypotenuse, both trigonometric options gives the same value, but causes divisions by 0 at different angles. The pythagoras option will remove any negative signs but atan still works fine.
sqrt r0 r0
+
*If you think that atan2( delta-x / delta-z ) looks flipped, it's because it is. What causes the flip are the devices themselves. When the head rotates horizontally in the positive direction they are actually rotating in what is normally considered the negative direction, and when the head points towards the data port it already has a 90° rotation.
div r0 deltaY r0
 
atan r0 r0
 
mul r0 r0 180
 
div r0 r0 pi
 
add r0 r0 90
 
s transmitter Vertical r0
 
  
#Vertical for "receiver"
 
#180 - Vertical for "transmitter"
 
sub r0 180 r0
 
s receiver Vertical r0
 
j main
 
</pre>
 
 
</translate>
 
</translate>

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)