Service#
Provides functionality to interact with Trajectories.
Note
Trajectories predicts the trajectory of the active vessel only.
- GET /trajectories/available#
Whether Trajectories is available.
- Response JSON Object:
value (bool)
- POST /trajectories/impact-patch#
The patch of the trajectory that ends in an impact.
- Response JSON Object:
value (Trajectories.Patch?) – The patch, or
nullwithout an impact.
- POST /trajectories/impact-position#
The position of the impact, or
nullwithout one.Note
In a reference frame that rotates with the body, the position includes the rotation of the body until the impact.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.
- Response JSON Object:
value (tuple<double, double, double>?)
- POST /trajectories/impact-velocity#
The velocity at the impact, or
nullwithout one.Note
In a reference frame that rotates with the body, the velocity includes the rotation of the body until the impact.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the velocity.
- Response JSON Object:
value (tuple<double, double, double>?)
- POST /trajectories/patches#
The patches of the trajectory.
- Response JSON Object:
value (list<Trajectories.Patch>)
- POST /trajectories/planned-direction#
The direction that the descent profile sets for the vessel.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the direction.
- Response JSON Object:
value (tuple<double, double, double>?) – The direction, or
nullwithout a target.
- POST /trajectories/corrected-direction#
The
POST /trajectories/planned-direction, corrected to steer towards the target.Note
Suitable as the target direction of the auto-pilot.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the direction.
- Response JSON Object:
value (tuple<double, double, double>?) – The direction, or
nullwithout a target.
- POST /trajectories/set-target#
Sets the target.
- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.
position (tuple<double, double, double>) – The position of the target.
body (SpaceCenter.CelestialBody?) – The body of the target, by default the body the active vessel orbits. Optional, defaults to
null.
- GET /trajectories/target-body#
The body of the target, or
nullwithout a target.- Response JSON Object:
value (SpaceCenter.CelestialBody?)
- POST /trajectories/target-position#
The position of the target, or
nullwithout a target.- Request JSON Object:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.
- Response JSON Object:
value (tuple<double, double, double>?)
- POST /trajectories/clear-target#
Clears the target.
- GET /trajectories/descent-profile#
The descent profile.
- Response JSON Object:
value (Trajectories.DescentProfile)
- GET /trajectories/always-update#
Whether Trajectories updates the trajectory continuously.
Note
When
false,POST /trajectories/update-trajectoryupdates the trajectory.- Response JSON Object:
value (bool)
- PUT /trajectories/always-update#
Whether Trajectories updates the trajectory continuously.
Note
When
false,POST /trajectories/update-trajectoryupdates the trajectory.- Request JSON Object:
value (bool) – The new value.
- POST /trajectories/update-trajectory#
Updates the trajectory.