360 rotation microcontroller
Have you ever had an issue where you wanted your turret(s) to rotate 360 instead of the usual 180 or 90 degrees? Well worry no more, this microcontroller is for you!
What can this thing do? Use a seat's look X to rotate a velocity pivot in a 360 degree circle, and not only that - it picks the shorter path, only utilizing 2 compasses and the aforementioned seat, but the nodes are named for you to connect them correctly.
The MC is also customizable so you can control:
- The regular rotation, if neither of the thresholds are met (base 0.04)
- The threshold in degrees offset to lower the rotation speed for more precision without constant flickering (base 1.2)
- The rotation after the 1st threshold (base 0.004)
- The threshold in degrees offset to further remove flickering (base 0.1)
- The mode in which the MC operates after leaving the seat, one of 3 (currently):
-- The MC will return the pivots to their default state
-- The MC will not move the pivots (default)
-- The MC will lock the current rotation of the pivots and will try to maintain it
!! NOTE !! This only moves the pivots in the X axis and will not account for pivots being offset from the seat. [b]If you wish to rotate in the Y axis too, use a function block set to x*4 to amplify your Y look to a robotic pivot.[/b]
Use this in your workshop builds freely, but if you want to improve/change it in a way, please credit me.
Enjoy!