Skip to content

[WIP] Autopilot v2#6345

Draft
Mc-Pain wants to merge 7 commits into
pioneerspacesim:masterfrom
Mc-Pain:autopilot-v2
Draft

[WIP] Autopilot v2#6345
Mc-Pain wants to merge 7 commits into
pioneerspacesim:masterfrom
Mc-Pain:autopilot-v2

Conversation

@Mc-Pain

@Mc-Pain Mc-Pain commented May 10, 2026

Copy link
Copy Markdown
Contributor

This is an attempt to make a new generation autopilot with following fixes:

  • If gravity is stronger than THRUSTER_UP, ship will fall down after "taking off" phase (accelerate upwards and keep 1km/s speed)
  • If orbiting something heavy, autopilot will try to match target velocity, which leads to another instance of falling ship

Features planned:

  • "Enter and maintain orbit around" command, where "orbiting around" may be performed in zero-gravity using only thrusters
  • Intercepting body detection: just orbit around it instead of trying to evade
  • Improved impact recovery - it's like driving a car, sometimes flying around is better then trying to stop at all costs and fail.

#6296 is included intentionally, new autopilot relies on it.

For testing purposes, new autopilot is applied to player only.
NPC's are not affected

Gliese852 and others added 7 commits February 17, 2026 13:19
Vital update is SDL2 with 'offscreen' video driver support. Also
replaced apt-fast which is now missing from the image and
the default repository, with apt-get.
The problem with the current version is that if the powerful thruster is
turned away from the direction of the required speed, it pushes the ship
to the side when gaining speed. This happens because the velocity vector
is decomposed along the directions of the thrusters, and each thruster
independently tries to maximize its component.

In the new version it is done so that the direction of the thrust vector
necessarily coincides with the direction of the required speed.
Otherwise, the linker discards the symbol "OutputVersioningInfo", and
then a linking error occurs.
@sturnclaw sturnclaw marked this pull request as draft May 13, 2026 20:35
@sturnclaw

Copy link
Copy Markdown
Member

Marking as draft to match WIP state; please feel free to mark ready for review once you're satisfied with the state of the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants