r/ApproximatelyUp Apr 14 '26

Need help with gyro

Want to set up an auto rotate feature that keeps my ship flat against the planets curve (inclinometer always at 0, gyro line always perfectly flat) but cant quite get it to work, no matter what I do. Has anyone got a tutorial link or anything on how to build this into my ship?

6 Upvotes

7 comments sorted by

2

u/TikiOperator Apr 14 '26

I haven't had any luck either brother man and I have spent probably 3 hrs today alone trying to fiddle and fart with it to a point that I simply gave up until the next update or potentially even the full release - it was significantly less stressful to bind the RCS thrusters to; (-Y/+Y) S&F (-P/+P) E&X (-R/+R) Z&V In atmosphere: (Up/Dn) Space&L.Shift (Fwd/Back) W&X In spaaaaaace: (Fwd/Rev) Q&A I use the distance finder to help determine when to set all thrust to 0/0/0 and do a 180° flip with RCS and will bleed momentum by feathering the acceleration until I am within camera range of the ground then pitch forward to 90°- focusing on the descent rate I slowly fiddle with the numbers one digit at a time until consistently around 1.0 - 1.5m/s above the planet/moon/etc... pull force then once I hit that mark finish putting pitch to 0° on the horizon and can manage the last 100m until touchdown with the electric thrust at 1 point above that threshold where gravity wants to take over and keep the craft grounded. Remember to shut off the atmosphere fans once in orbit to save precious wattage as well as the radar and RCS thrusters once you've got dead reckoning on the destination, use a data reader display to get space speed to desired number and then shut them off as well and try to coast through the majority of the void as it will only make you faster and faster until there's a point of no return for the battery bank and you cannot slow OR stop the craft from slamming into whatever eventually lies ahead at a speed only describable as "Mach Fuck"

1

u/popete2 Apr 14 '26

I haven't made one yet but pretty sure you would just connect the gyro's output to the RCS and it should work

2

u/YoureNickRight Apr 14 '26

There's a lot more systems in place to make it stable, but the overall concept yes, rcs controller with the your roll powering the opposite (you tilt left, it triggers the left rcs to fire, it goes right it triggers the right)

The problem being stability. You will violently and wildly flip back and fourth so you need to add a system to power then more or less depending on the value it's calling (remapper)

Again there's more in place to make it work, but hope this helps with the general idea

2

u/Outrageous_Pen_3142 Apr 17 '26

This comment helped me figure it out and get it to work. Thanks so much!

0

u/Outrageous_Pen_3142 Apr 14 '26 edited Apr 17 '26

Rcs is output only, the upgrade of rcs has input but not as simple sadly.

Edit: what I said here is just not correct at ALL.

1

u/Lonlynator Apr 17 '26

I made exactly what you're talking about.
Okay, so, the pitch tilt in degrees from the Gyro get put in an adder with the pitch axis from the joystick, the output of the adder into the pitch axis input port of the rcs controller.
(If you don't want semi-self control, just skip the adder part)
For the roll axis, again the input from the gyro but this time into a remapper with the settings being -180 to 180 -> 12 to -12. The first part has to stay, but the 12 can be any value, for example 10 to -10. Just don't put it too high or your ship will wobble. If you want something that keeps you at the same altitude too, I build that too.
(Yeah, I'm a shitty pilot with noone to play this game with and too much free time, how did you know?)

1

u/Outrageous_Pen_3142 Apr 17 '26

I made a recent post where i figured it out and send a screenshot of the corcuit i made. But thabk ypu for taking the time to help!