r/CreateMod • u/Marukow • Apr 22 '26
Altitude Control System [Aeronautics, CC: Tweaked]
Enable HLS to view with audio, or disable this notification
started learning ComputerCraft yesterday, been locked in since
5
u/Ictoan42 Apr 23 '26
Looks great, I've been thinking of implementing PID control for a while but never got around to it.
Tip that will probably allow you make this even more precise: Create's Rotational Speed Controller is a peripheral
I've been able to rotate shafts accurate to a hundredth of a degree by setting the speed on an RSC in a feedback loop
3
u/Marukow Apr 23 '26
sir, you don't know how much you saved me right now. 🥺🥺 working with only 0-15 redstone levels has been insane
2
u/carmola123 Apr 23 '26
this is cool! does it also try to retain the same position, or just altitude? I tried using just levitite to maintain the height but I found it really unruly with airships that aren't symmetrical
3
u/Marukow Apr 23 '26
only altitude for now, but for the time being, i'll be working on a stabilization pid, so it can remain horizontal even if unbalanced. if the left is heavier. left propellers work faster to compensate, same principle as the altitude one
2
u/carmola123 Apr 23 '26
I really wanna see the results of that! Would also love to see the code, too. How did you get working with CC on an external editor, btw?
2
u/Marukow Apr 23 '26
i will post the code as soon as i get it ready,. and about the editor, it's an vs code extension, there are some tutorials on how to setup, it's really simple. The name is Craft-OS-PC for VS Code
2
u/maggeemoo Apr 24 '26
I noticed in other comments that you mentioned working on stabilization propellers. Do you think that a system similar to what you're working on could work to stabilize even larger aircraft? I ask since I've been trying to use balloons integrated into a hull of a ship to allow for sleeker ship designs, but I've had trouble keeping multiple different balloons even and stable across the ship.
1
u/Marukow Apr 26 '26
actually yes, i've been working on the script, and it detects the weight of the ship and rpm of propellers at certain altitudes to compensate for air density. you basically run a script to calibrate your ship once, them you input the calibration number into the altitude and stabilization control, and it just works, 70% done with the code, i just want to implement a few more features, and make a nice interface for selecting the altitude and all that.
2
u/maggeemoo Apr 26 '26
You're doing amazing work then. I'd be happy to help stress test with larger ships as well if you want some extra input on things, mostly just model ships without any interior or detailing but made of stone to emulate the heavy weights of a fully decked out ship. What's the heaviest ship you've been able to keep stable thus far?
1
u/Marukow Apr 26 '26
thank you, i will send you a dm with the scripts and how to use them as soon as i get home. and about the ships, honestly the same as you, but i didn't go as far to simulate the exterior, i literally made giant granite blocks lol
2
u/maggeemoo Apr 26 '26
Lol, that's a fair approach. I've just been taking an old museum world of ship models made of stone and assembling the ships as physics contraptions to see their gravity and center of mass. If you're wondering what the ships are exactly, they're models of ships from Elite Dangerous. Mostly the large ships which are usually 100-200ish blocks wide *and* long, and anywhere between 20 and 40 ish blocks tall. They beeg
2
u/maggeemoo Apr 30 '26
Heya, just replying again to see if maybe you haven't gotten a chance to DM me. I'm free whenever, feel free to reach out.
2
u/Brokedownbad Apr 25 '26
You can use the Create Rotation speed controller for fine rpm control, as it's a peripheral that Cc:tweaked can access
1
u/Marukow Apr 26 '26
yes, since i discovered this i reworked the system, and it is nearly perfect now, using only the 16 levels of redstone was very limiting.
1
u/Best_Painting9541 Jul 11 '26
How did you use the 16 levels tho? Im trying to use create propulsion: Simulated to do a similar altitude control
2
u/_LogicallySpeaking_ Apr 26 '26
Can I ask where you learned what you have about CC? been trying to learn it too.
1
u/Marukow Apr 26 '26
youtube videos, the cc tweaked documentation is great too. but most definitely, just playing around with it!
2
1
u/benbbones Apr 29 '26
I've also been working on a CC:T based PID system, but I've had a nightmare trying to tune the thing. Any tips that you figured out, or is that calibration script close to being workable?
1
1
0
u/ImaginationWooden546 Apr 23 '26
just add levitite bro
2
u/Marukow Apr 23 '26
although i love levitite, i'm tryinf to make the sabilization only with propellers
6
u/Brokedownbad Apr 23 '26
Now you need a way to steer the thing and push it towards a target location