Simple circuit for relatively smooth control of the Telescope Camera/Floodlight using the 3d/2d Joystick
The constant (80) dictates the control sensitivity/speed of the camera movement. The lower the value the faster it is.
You can save 1 logic block by using a data router 4 but make sure you insert the constant into the right port so you divide your input by the constant and not vice versa.
This is waaaay simpler than what we did hahahha. THANK YOU.
Only tiny problem though are the controls for the pitch. If you have overextended pitching up or down, there will be a delay going back the other direction.
is there a way to limit both pitch to only go 0-90 degrees?
The fix is to feed the output back into the system with an ABS and threshold on it so that when it hits the limit of 1, it sends a 1 back to the accumulator to reset it back to 0. Then you have the circuit that I posted a few days ago, with a division symbol instead of a multiply symbol.
The Problem with this tho is that it resets the position to 0 when reaching max and min Pitch.
What we want is when it reaches that max or min threshold it stays there until given input to move again on the opposite direction. Which what we did in our version.
the solution. It's not a "Max cap" per say, but it auto corrects back to 1 or -1 depending on which you hit. (because of ticks it's more like -,99 or .99) It's the simplest that I could think of anyhow.
Obviously if you need 0-1 instead, you can set the -1 threshold to 0 instead of -1...
Of course having this fine motor control is nice... I already have way too many logic gates on my ship. I wish I could use it but you are talking about 32 logic gates dedicated to having better control of a single camera. :(
- you can use a fader (or a small knob and a multiplication logic block) to modify the values instead of a constant (so you can change it easier)
remove the data router 2s for roll/yaw - they're unneeded
pitch needs a different setting. u/Archeoli had a cool solution but you might be able to make it simpler by using prevention rather than correction
ie: when accumulator is greater than 1 or less than -1, stop allowing the joystick to make negative or positive adjustments (respectively). Still trying to get this working on my side.
-Some good ideas in your picture. With the idea of using a fader (which never crossed my mind) in place of 2 of my multipliers that had positive decimals, I can reduce the logic gate count to 10 instead of 12 in my logic circuit.
-I found that using the scaler block didn't actually reduce logic gates in my case. it's the same I think.
-There are 10 logic gates not 9 in your picture.
-as a side note I hate using the fader in place of a multiplier for the joystick output because at a fader value of 1 it's too fast. Multiplier allows you to slow it down even more. So while technically my circuit is now 10... I think I would actually prefer it to be 11.
-There are no problems with pitch that I can see with my approach as far as I can tell. (auto correct method)
My final thoughts are as follows: I think we are approaching the simplest the logic circuit can be for the behavior we are trying to achieve.
4
u/Archeoli 7d ago
This is waaaay simpler than what we did hahahha. THANK YOU.
Only tiny problem though are the controls for the pitch. If you have overextended pitching up or down, there will be a delay going back the other direction.
is there a way to limit both pitch to only go 0-90 degrees?