<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=SimTX_API%2FPackets%2FPassPredictionRequest</id>
	<title>SimTX API/Packets/PassPredictionRequest - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=SimTX_API%2FPackets%2FPassPredictionRequest"/>
	<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/PassPredictionRequest&amp;action=history"/>
	<updated>2026-11-04T20:53:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.simtx.net/index.php?title=SimTX_API/Packets/PassPredictionRequest&amp;diff=2418&amp;oldid=prev</id>
		<title>Clanker: Remove development history and server internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/PassPredictionRequest&amp;diff=2418&amp;oldid=prev"/>
		<updated>2026-10-24T17:16:29Z</updated>

		<summary type="html">&lt;p&gt;Remove development history and server internals&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:16, 24 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l61&quot;&gt;Line 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Complete frames, including the varint length prefix&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, from the protocol&#039;s golden test vectors (&amp;lt;code&amp;gt;protocol/simtx/v25/testdata/frames.json&amp;lt;/code&amp;gt;)&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Complete frames, including the varint length prefix.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;pass_request_station_observer&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 74 bytes):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;pass_request_station_observer&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 74 bytes):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
	<entry>
		<id>https://wiki.simtx.net/index.php?title=SimTX_API/Packets/PassPredictionRequest&amp;diff=2297&amp;oldid=prev</id>
		<title>Clanker: Protocol v25 reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/PassPredictionRequest&amp;diff=2297&amp;oldid=prev"/>
		<updated>2026-10-24T16:27:46Z</updated>

		<summary type="html">&lt;p&gt;Protocol v25 reference&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SimTX API navigation}}&lt;br /&gt;
{{SimTX packet&lt;br /&gt;
| name = PassPredictionRequest&lt;br /&gt;
| frame = ClientFrame&lt;br /&gt;
| field = 41&lt;br /&gt;
| member = passes&lt;br /&gt;
| direction = c2s&lt;br /&gt;
| session = [[SimTX API/Control session|Control]]&lt;br /&gt;
| roles = &amp;lt;code&amp;gt;ROLE_CONTROL&amp;lt;/code&amp;gt;.&lt;br /&gt;
| permission = None. The satellite and an observer station must be visible to the session.&lt;br /&gt;
| reply = [[SimTX API/Packets/PassPredictionResponse|PassPredictionResponse]] or [[SimTX API/Packets/Error|Error]]&lt;br /&gt;
| group = control&lt;br /&gt;
| file = control.proto&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;PassPredictionRequest&amp;#039;&amp;#039;&amp;#039; asks the server when a satellite will be above an observer&amp;#039;s horizon within a time window. It needs the server feature &amp;lt;code&amp;gt;passes&amp;lt;/code&amp;gt;. The observer is one of your ground stations (or a PUBLIC one) or an arbitrary position.&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;protobuf&amp;quot;&amp;gt;&lt;br /&gt;
message PassPredictionRequest {&lt;br /&gt;
  int64 request_id = 1;&lt;br /&gt;
  bytes satellite_id = 2;&lt;br /&gt;
  oneof observer_site {&lt;br /&gt;
    bytes observer_station_id = 3;&lt;br /&gt;
    GeoPoint observer = 4;&lt;br /&gt;
  }&lt;br /&gt;
  int64 from_ms = 5;&lt;br /&gt;
  int64 to_ms = 6;             // at most 7 days after from_ms&lt;br /&gt;
  double min_elevation_deg = 7;&lt;br /&gt;
  double frequency_hz = 8;     // for max Doppler; 0 = skip&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! # !! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1 || &amp;lt;code&amp;gt;request_id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || Nonzero; echoed in the [[SimTX API/Packets/PassPredictionResponse|PassPredictionResponse]] or [[SimTX API/Packets/Error|Error]].&lt;br /&gt;
|-&lt;br /&gt;
| 2 || &amp;lt;code&amp;gt;satellite_id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bytes&amp;lt;/code&amp;gt; || 16-byte UUID of the satellite.&lt;br /&gt;
|-&lt;br /&gt;
| 3 || &amp;lt;code&amp;gt;observer_station_id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bytes&amp;lt;/code&amp;gt; || Member of &amp;lt;code&amp;gt;oneof observer_site&amp;lt;/code&amp;gt;. A ground station to observe from.&lt;br /&gt;
|-&lt;br /&gt;
| 4 || &amp;lt;code&amp;gt;observer&amp;lt;/code&amp;gt; || [[SimTX API/Data types#GeoPoint|GeoPoint]] || Member of &amp;lt;code&amp;gt;oneof observer_site&amp;lt;/code&amp;gt;. An arbitrary observer position.&lt;br /&gt;
|-&lt;br /&gt;
| 5 || &amp;lt;code&amp;gt;from_ms&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || Start of the window, Unix ms of simulation time.&lt;br /&gt;
|-&lt;br /&gt;
| 6 || &amp;lt;code&amp;gt;to_ms&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || End of the window, Unix ms. At most 7 days after &amp;lt;code&amp;gt;from_ms&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| 7 || &amp;lt;code&amp;gt;min_elevation_deg&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;double&amp;lt;/code&amp;gt; || Elevation threshold for acquisition and loss of signal, degrees.&lt;br /&gt;
|-&lt;br /&gt;
| 8 || &amp;lt;code&amp;gt;frequency_hz&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;double&amp;lt;/code&amp;gt; || Carrier frequency for &amp;lt;code&amp;gt;max_doppler_hz&amp;lt;/code&amp;gt;, Hz. 0 skips the Doppler computation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Behaviour ==&lt;br /&gt;
* Exactly one of &amp;lt;code&amp;gt;observer_station_id&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;observer&amp;lt;/code&amp;gt;. An observer station must be a ground station that currently has a live session on that server and is PUBLIC or your own; otherwise the request is answered with [[SimTX API/Packets/Error|Error]] &amp;lt;code&amp;gt;NOT_FOUND&amp;lt;/code&amp;gt; (&amp;lt;i&amp;gt;Unknown observer station on this server; send the observer location instead&amp;lt;/i&amp;gt;).&lt;br /&gt;
* The window may be at most 7 days long, between the years 1970 and 2200.&lt;br /&gt;
* Elevations are geometric (no refraction), on the 6,371 km sphere. See [[SimTX API/Satellites#Passes|Passes]] for the algorithm.&lt;br /&gt;
* Passes that overlap the window are clipped to it, and to a deorbiting satellite&amp;#039;s reentry. An always-visible geostationary satellite gives one window-long pass; a never-visible one gives none.&lt;br /&gt;
* Satellite failures are answered with [[SimTX API/Packets/Error|Error]] as for [[SimTX API/Packets/EphemerisRequest|EphemerisRequest]].&lt;br /&gt;
* Heavy request.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Complete frames, including the varint length prefix, from the protocol&amp;#039;s golden test vectors (&amp;lt;code&amp;gt;protocol/simtx/v25/testdata/frames.json&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;pass_request_station_observer&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 74 bytes):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
49                            frame length 73&lt;br /&gt;
CA 02 46                      passes (PassPredictionRequest), 70 bytes&lt;br /&gt;
  08 16                       request_id = 22&lt;br /&gt;
  12 10 99 99 99 99 …         satellite_id = 99999999-8888-4777-8666-555555555555&lt;br /&gt;
  1A 10 11 11 11 11 …         observer_station_id = 11111111-2222-4333-8444-555555555555&lt;br /&gt;
  28 80 94 83 B9 97 34        from_ms = 1793000000000&lt;br /&gt;
  30 80 CC 9C E2 97 34        to_ms = 1793086400000&lt;br /&gt;
  39 00 00 00 00 00 00 24 40  min_elevation_deg = 10.0&lt;br /&gt;
  41 00 00 00 60 19 EF B9 41  frequency_hz = 435100000.0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;pass_request_point_observer&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 67 bytes):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
42                              frame length 66&lt;br /&gt;
CA 02 3F                        passes (PassPredictionRequest), 63 bytes&lt;br /&gt;
  08 17                         request_id = 23&lt;br /&gt;
  12 10 99 99 99 99 …           satellite_id = 99999999-8888-4777-8666-555555555555&lt;br /&gt;
  22 1B                         observer (GeoPoint), 27 bytes&lt;br /&gt;
    09 00 00 00 00 00 C0 47 40  latitude_deg = 47.5&lt;br /&gt;
    11 00 00 00 00 00 00 33 40  longitude_deg = 19.0&lt;br /&gt;
    19 00 00 00 00 00 00 5E 40  altitude_meters = 120.0&lt;br /&gt;
  28 80 94 83 B9 97 34          from_ms = 1793000000000&lt;br /&gt;
  30 80 CC 9C E2 97 34          to_ms = 1793086400000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[SimTX API/Satellites#Passes|Passes]]&lt;br /&gt;
* [[SimTX API/Packets/PassPredictionResponse|PassPredictionResponse]]&lt;br /&gt;
&lt;br /&gt;
{{SimTX API navbox}}&lt;br /&gt;
[[Category:SimTX API]]&lt;/div&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
</feed>