Actions

Difference between revisions of "PowerTransmitter"

From Unofficial Stationeers Wiki

m
(IC script)
 
(8 intermediate revisions by 2 users not shown)
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 requrires 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 requires 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.
+
*Unaffected by storms.
*The coordinates of these devices will change when the head moves.
+
*Using two emitters on the same receiver doesn't appear to work
*Both structures and terrain will block the beam.
+
*A Logic Transmitter can mirror receivers, but not emitters.
*Storms have no effect on the power transfer.
+
*The coordinates of these devices will change slightly when the head moves.
*Using two emitters on the same reciever doesn't appear to work
+
*Both structures and terrain will block the beam. Once a beam is formed it will no longer be blocked by building things between them.
*A Logic Transmitter can mirror recievers, but not emitters.
+
*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 67: Line 66:
  
 
==Alignment formulas==
 
==Alignment formulas==
All dataports points north, the delta values are calculated from: "reciever coordinate" - "emitter coordinate"
+
All dataports points north, the delta values are calculated from: "receiver 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
  
Horizontal angle at "emitter" (in radians) = atan2( delta-x / delta-z )
+
main:
<br>Horizontal angle at "emitter" (in degrees) = Horizontal angle at "emitter" (in radians) * 180 / pi
+
yield
<br>Horizontal angle at "reciever" (in degrees) = 180 + Horizontal angle at "emitter" (in degrees)
+
#calculate delta values
 +
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 Hypotenuse (option 1) = delta-z / cos(Horizontal angle at "emitter" (in radians))
+
#Horizontal for "transmitter"
<br>Horizontal Hypotenuse (option 2) = delta-x / sin(Horizontal angle at "emitter" (in radians))
+
#atan2(deltaX/deltaZ)*180/pi
<br>Vertical angle at "emitter" (in degrees) = 90 + atan( delta-y / Horizontal Hypotenuse ) * 180 / pi
+
atan2 r0 deltaX deltaZ
<br>Vertical angle at "reciever" (in degrees) = 180 - Vertical angle at "emitter" (in degrees)
+
mul r0 r0 180
 +
div r0 r0 pi
 +
s transmitter Horizontal r0
  
 +
#Horizontal for "receiver"
 +
#180 + Horizontal for "emitter"
 +
add r0 180 r0
 +
s receiver Horizontal r0
  
===Notes===
+
#Vertical for "transmitter"
*The vertical calculation uses atan, the horizontal uses atan2.
+
#atan(deltaY/sqrt(deltaX^2+deltaZ^2))*180/pi+90
*The delta values are not constants, but they only change a little bit.
+
mul r0 deltaX deltaX
*When delta-z = 0, atan2( delta-x / delta-z) still works
+
mul r1 deltaZ deltaZ
*When calculating the Horizontal Hypotenuse, both options gives the same value, but causes divisions by 0 at different angles.
+
add r0 r0 r1
*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.
+
sqrt r0 r0
 +
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>

Latest revision as of 18:49, 27 December 2022


Kit (PowerTransmitter)
Creates whats below
Properties
Stacks Yes (10)
Recipe
Created With Electronics Printer
Cost 5 Gold, 7 Copper, 3 Steel
Power Transmitter
Microwave Power Transmitter.jpg
Operation
Power Usage 10W
Construction
Placed with Kit (PowerTransmitter)
Placed on Large Grid
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received 3x Electronic Parts
Stage 2
Deconstruction
Deconstructed with Hand Drill
Item received 2x Iron Sheets
Stage 3
Deconstruction
Deconstructed with Hand Drill
Item received Kit (PowerTransmitter)
Power Receiver
Microwave Power Receiver.jpg
Operation
Power Usage 10W
Construction
Placed with Kit (PowerTransmitter)
Placed on Large Grid
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received 1x Electronic Parts
Stage 2
Deconstruction
Deconstructed with Hand Drill
Item received 2x Iron Sheets
Stage 3
Deconstruction
Deconstructed with Hand Drill
Item received Kit (PowerTransmitter)


Description[edit]

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.

General behaviour[edit]

  • 5kW is the maximum PowerPotential that can be transmitted, this amount is reduced by distance.
  • Unaffected by storms.
  • Using two emitters on the same receiver doesn't appear to work
  • A Logic Transmitter can mirror receivers, 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[edit]

Power transfer with 4000 W PowerPotential[edit]

98m = 3630 W (-0.37kW)
198m = 2863 W (-1.14kW)
300m = 1409 W (-2.59kW)
400m = 0 W


Power transfer with 5000 W PowerPotential[edit]

98m = 4630 W (-0.37kW)
198m = 3863 W (-1.14kW)
300m = 2409 W (-2.59kW)
400m = 651 W (-4.35kW)


Alignment formulas[edit]

All dataports points north, the delta values are calculated from: "receiver coordinate" - "emitter coordinate"

Horizontal for "emitter" = atan2( delta-x / delta-z ) * 180 / pi
Vertical for "emitter" = 90 + atan( delta-y / sqrt( (delta-z)^2 + (delta-x)^2 ) ) * 180 / pi

Horizontal for "receiver" = 180 + Horizontal for "emitter"
Vertical for "receiver" = 180 - Vertical for "emitter"

Comments:
When the data-port points north, +0° is added to the Horizontal rotation.
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
Both atan2() and atan() uses radians for the angle, radians are converted to degrees by multiplying with 180 / pi
atan2(x/z) should be z/x in a normal situation, but it has been inverted to compensate for the devices inverted rotation direction
atan(y/x) uses Pythagoras theorem to set x as the horizontal-plane distance between emitter and receiver

IC script[edit]

##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:
yield
#calculate delta values
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"
#atan2(deltaX/deltaZ)*180/pi
atan2 r0 deltaX deltaZ
mul r0 r0 180
div r0 r0 pi
s transmitter Horizontal r0

#Horizontal for "receiver"
#180 + Horizontal for "emitter"
add r0 180 r0
s receiver Horizontal r0

#Vertical for "transmitter"
#atan(deltaY/sqrt(deltaX^2+deltaZ^2))*180/pi+90
mul r0 deltaX deltaX
mul r1 deltaZ deltaZ
add r0 r0 r1
sqrt r0 r0
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