Patch#
Patch
A patch of the trajectory, at its position in POST /trajectories/patches.
Note
Trajectories computes the trajectory again as the vessel flies, and the patch reads the latest one. Throws an exception if the trajectory has fewer patches.
A Patch object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- POST /trajectories/patch/(id)/position#
The position of the impact, or
nullwithout one.Note
In a reference frame that rotates with
GET /trajectories/patch/(id)/body, the position includes the rotation of the body until the impact.- Parameters:
id – The identifier of the Patch object.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.
- Response JSON Object:
value (tuple<double, double, double>?)
- POST /trajectories/patch/(id)/velocity#
The velocity at the impact, or
nullwithout one.Note
In a reference frame that rotates with
GET /trajectories/patch/(id)/body, the velocity includes the rotation of the body until the impact.- Parameters:
id – The identifier of the Patch object.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the velocity.
- Response JSON Object:
value (tuple<double, double, double>?)
- GET /trajectories/patch/(id)/body#
The celestial body that the patch is relative to.
- Parameters:
id – The identifier of the Patch object.
- Response JSON Object:
value (SpaceCenter.CelestialBody)
- GET /trajectories/patch/(id)/start-ut#
The universal time at the start of the patch, in seconds.
- Parameters:
id – The identifier of the Patch object.
- Response JSON Object:
value (double)
- GET /trajectories/patch/(id)/end-ut#
The universal time at the end of the patch, in seconds.
Note
For a patch that ends in an impact, this is the time of the impact.
- Parameters:
id – The identifier of the Patch object.
- Response JSON Object:
value (double)
- GET /trajectories/patch/(id)/atmospheric#
Whether the patch is inside an atmosphere.
- Parameters:
id – The identifier of the Patch object.
- Response JSON Object:
value (bool)
- POST /trajectories/patch/(id)/atmospheric-trajectory#
The points of an atmospheric patch, or
nullfor a patch in space.Note
Each point is a tuple
(ut, x, y, z). In a reference frame that rotates withGET /trajectories/patch/(id)/body, the positions include the rotation of the body until each point.- Parameters:
id – The identifier of the Patch object.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the positions.
- Response JSON Object:
value (list<tuple<double, double, double, double>>?)