Ship speed control based on ammo counts

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
jakemac53
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Jan 05, 2025 6:39 am
Contact:

Ship speed control based on ammo counts

Post by jakemac53 »

I wanted to design a ship which could smartly control its max speed based on the current amount of ammo on board, so I made one.

Note: See reply below, I updated this design to make it easier to use and provided a screenshot without alt mode.
speed control.PNG
speed control.PNG (1.01 MiB) Viewed 1322 times
Set your desired ammo counts, as well as max and min speeds in the constant combinators on the bottom. The max speed will be multiplied by the smallest percentage of actual ammo versus desired for any ammo signal you set.

Inputs are the actual ammo counts (green wire going into the bottom right arithmetic combinator) and speed (red wire coming into the top mid-right decider combinator).

The top mid-right decider combinator will output an engine signal which can be used to enable a pump, if current speed is less than the modified maximum.

Could tweak this a bit if you are using a smarter pump, the top mid-left arithmetic combinator outputs the computed max speed which could be fed directly into some other designs I have seen here, or you can use the P signal which gives you the raw percentage to plug into some other design.

Combinator only BP:



Full Aquilo ship BP:

Last edited by jakemac53 on Sun Jan 05, 2025 6:39 pm, edited 4 times in total.
mmmPI
Smart Inserter
Smart Inserter
Posts: 4575
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Ship speed control based on ammo counts

Post by mmmPI »

jakemac53 wrote: Sun Jan 05, 2025 6:56 am I wanted to design a ship which could smartly control its max speed based on the current amount of ammo on board, so I made one.
Nice !

To be fair i was expecting a ship in the blueprint, to try it right away, that's probably childish of me :)

But inspired by the spirit shown here, i thought i would just make one :D

I attempted to reproduce the connections from the picture, and got confused about the red wire that can be seen leaving the top of the picture, the alt view making it difficult for me to know where it connect on the combinator located just under the display pannel.

Only then i attempted to read the text, and i'm still confused because i think there is no mention of it, or i missed it. Now maybe it's not necessary or anything but i was expecting to understand what's going on when looking at it in action and at this point i'm not sure i'd be doing it right.

Could you please explain a bit more ? not like i'm a child excited to try a new toy, but still a little like that ? :lol:
jakemac53
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Jan 05, 2025 6:39 am
Contact:

Re: Ship speed control based on ammo counts

Post by jakemac53 »

The red wire is bringing in the speed signal from the hub - I realized I said it was green in the post so I will update that!

I will also add a blueprint for a ship that uses this, good idea :).
jakemac53
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Jan 05, 2025 6:39 am
Contact:

Re: Ship speed control based on ammo counts

Post by jakemac53 »

Updated the blueprint based on feedback to simplify wiring up, now just requires two inputs into a medium electric pole:

- Green wire should be current ammo levels
- Red wire should be current velocity (V) from hub

For the output just copy the pump on the top into your desired location to control thruster fuel input to engines.

I also parameterised the blueprint so it is easy to set all the values. These can be reset still using the combinators on the bottom.

I also added a display showing which ammo is currently lowest next to the red/yellow/green status display.
thruster_control.PNG
thruster_control.PNG (1.32 MiB) Viewed 1243 times
Post Reply

Return to “Combinator Creations”