Need help with signal logic for my ship!

Discussion in 'General Discussion' started by andresdebuenr, Jan 1, 2021.

Tags:
  1. andresdebuenr

    andresdebuenr Ensign

    Joined:
    Jul 10, 2019
    Messages:
    18
    Likes Received:
    15
    First of all, thanks for visiting this post.
    The thing is I want to add a manual and automated "Performance Mode" to my ship, that is, some extra engines and RCS that will be toggled on/off in the control panel via the Signal "Performance Mode" (Not in the custom tab, signal tab).

    Up to that point, everything is fine. I can do that much. The problem comes when I want to automate it; that is, whenever I leave my cockpit, I want those "Performance mode" engines to turn off, while having the option to automatically enable them whenever I get to the command bridge.


    The conditions for my circuit are the following:
    1. Performance Engines can ONLY BE TURNED ON via the control panel
    2. Performance Engines NEED to be able to be turned off the following ways:
    A) By turning off the "Performance Mode" signal or shortcut in the control Panel
    B) By leaving my ship
    3. Enable a signal to automatically turn on performance engines in the control panel whenever I reach my cockpit. (This will allow for maneuverability customization when Im able to upload my CV in the workshop. While I might care about fuel consumption at the cost of maneuverability, some people might choose to go all out without regard for fuel consumption, or maybe wont like to be enabling performance mode every time they sit on the cockpit).

    As long as those 3 conditions are met, anything goes. Auxiliary signals, sensors, complex circuitry, whatever it is, I welcome it.

    So far, I've only managed to meet conditions 1. and 2. by linking the performance engines group to a custom shortcut I called "Performance Mode" (this completes condition 1), and the engines to a motion sensor near the exit that always turns them off whenever it detects me (this completes condition 2), but I have failed to meet condition 3 using this setup. (Unable to link engines to multiple signals)

    My second attempt was more complex, and I still used the Performance Engines Group Shorcut in the custom tab, and those are the steps I followed:
    1) Set up a S/R latch
    2) Set the S to a motion sensor that detects me when Im near the cockpit. ("Perf Engines On")
    3) Set the R to a motion sensor that detects me when near the exit("Perf Engines Off")
    4) Call the resulting Q "Power Save"
    5) Create a signal in the control panel called "Automatic Perf Mode"
    6) Set up AND circuit with "Automatic Perf Mode" AND "Power Save" = "Engine Signal" signal
    7) Linked the "Engine Signal" to the performance engines.
    Conclusions: This allows me to be on performance mode from the Get Go, The problem with this setup is that I'm unable to meet condition 2 B), as this setup wont allow me to turn off performance engines by leaving my ship, so I loose automation here. (I guess because the S/R latch detects the Reset as Engines ON, because the custom group is ON).


    I have an idea about how the logical statement works, but dont know how to translate it to AND/NAND/OR/NOR/XOR circuits.
    Im thinking:

    IF Ship Exit sensor = 1, then engines =0
    IF "Performance mode"= 1, engines =1, otherwise engines=0
    IF "Performance mode"=1 AND Ship Exit Sensor =1, then engines =0


    Do you guys have any ideas how a configuration like this could be met?

    Thanks in advance! Happy New Year!
     
    #1
    Last edited: Jan 1, 2021
  2. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    i don't know if motion sensors and cockpits (the open seats on CV's or SV's) work yet. They did not when I tried this so I created a "barrier" instead , but the triggering was unreliable. It does work, but was not reliable enough to be fun when last I tried just before the version 1 release. The barrier just before the seat solved the problem of how the pilot is actually "invisible" while in a seat. It was tricky because it needed 2 barriers to determine direction of travel.

    The lack of a /Q output on the SR latch also made my brain melt, to be fair.
     
    #2
  3. andresdebuenr

    andresdebuenr Ensign

    Joined:
    Jul 10, 2019
    Messages:
    18
    Likes Received:
    15
    Been tr
    Damn, been trying to solve this for 8 hours straight. Gotta sleep hahahaha
    It seems so far I have to choose between
    A) saving fuel when I exit my ship turning all the engines off - condition 2
    B) Having the luxury of enabling/disabling automatic Performance mode whenever I start up my ship.
    Gotta find a way to reconcile those 2.
    SLEEP.....MUST....SLEEEEP......
     
    #3
    zaphodikus likes this.
  4. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    Do keep us updated on whether you do get this working somehow else.
     
    #4
  5. Movado

    Movado Lieutenant

    Joined:
    Dec 18, 2020
    Messages:
    42
    Likes Received:
    24
    I accomplish this by using a manual switch in the cockpit. You could even setup 2 separate switches.

    First switch: turns on bare minimum thrusters that you always want to operate.
    Second switch: turns on the rest of the thrusters to enable maximum lift.

    I know it’s not automatic since you have to flip a switch. But it’s super easy to look at a switch and hit one button to turn them off/on. I use a similar setup with one of my resource hauling ships. Some thrusters are always off, and I only turn them on if I’ve got a really heavy load or entering high G planet.
     
    #5
    zaphodikus likes this.

Share This Page