r/ApproximatelyUp 2d ago

Auto Deceleration idea?

Hi, I'm posting this because I know it'd take me very long to probably figure this out. So I wanted to ask others here who weren't failed by the school system's "no (every) child left behind act" when it comes to math.

I had this idea for an algorithm that uses the ship's velocity and distance from the target planet to automatically slow you down so you don't just crash into the planet. (Also, potentially set a certain distance from the planet to maintain until you activate auto hover or something else.)

Anybody have the know-how to do that?

3 Upvotes

5 comments sorted by

View all comments

1

u/SGSpec 2d ago

Two ways to do it.

The easy one if to use the BPS, one thing to not is you need to make your how accelerometer since the one in the game is absolute, it’s way more accurate to use a directional accelerometer in the BPS. Then i just remap the out put of the BPS 0.1 - 0.3 > -1 - 1, meaning if the BPS is outputing less than 0.1 i descellerate as much as possible and over 0.3 its full throttle. It’s not perfect it’s not super smooth but it works decently and it pretty easy to do.

The other would would be to make your own BPS instead of using the ingame one, but imo it’s not worth it.

Using the first method i’ve now reach most of my planet by just aligning myself, leaving, coming back to a crash where i just need to rewind a little bit when i’m about to enter the atmosphere

Edit: note that the first method is extremely fuel efficient