Jump to content
Stray Fawn Community
  • 4

Multiple inputs/outputs to logic blocks


EdTheRabbit

Post

Rather than change the major functionality to any of the blocks, just allow more inputs/outputs to do the same thing. This could prevent the user from having to chain multiple AND/IF/NOR etc. blocks:

if A AND B then X

       If C AND D then Y

              if X AND Y then Z

3 blocks - compared to 1 block of if AND(A,B,C,D) then Z

in the same way, you can have multiple outputs, you can more easily create logic to move your drone - you can for example, share thrusters across several functions - have all your rearward facing thrusters fire for forwards, and still have the appropriate half of them used for left/right

so instead of:

if A then X

  if A then Y

    if A then Z

have: if A then (X,Y,Z)

You could enact this in your interface by just having a 'plus' button on the input and output sections that adds another row, and as additional rows appear, so do 'minus' buttons to delete existing rows.

At the moment, I'm using dozens of blocks for complicated thruster sharing movement routines, where I could be using 6 blocks, one for each of the cardinal directions, and two to rotate.

 

  • Like 1
Link to comment
Share on other sites

1 reply to this post

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...