#[cv2] i need help figuring out how to make the cv2 rotator go 180 and then do another 180 back

14 messages · Page 1 of 1 (latest)

hearty cave
#

i wanna rig a object to go 180 with a button, then when i press it again it does another 180 to reset it back to the original point. pls help

shut elk
hearty cave
#

hmmm

#

ok

shut elk
# hearty cave ok

You can spawn it in and save it as your own, then spawn in your own version, that way it doesnt show up in This Room\Inventions

hearty cave
#

uh

#

ty

#

but i still am new to cv2

#

idk what to connect with what

hearty cave
#

wait

#

how do i make it to where when i push the button again it reverses

shut elk
# hearty cave how do i make it to where when i push the button again it reverses

3 Chips

  • Bool Variable
  • Not
  • If Value

When the button is pressed, execute the bool variable
The input of the bool variable should be the Not chip, the bool input on the Not chip should be the bool variable, this way everytime the bool variable is executed, it switches states

After executing the bool variable, execute Rotate To Target
The input on the target should be the If Value chip

The "Condition" input on the If Value should be the bool variable output
The "Then" input on the If Value should be 180
The "Else" input on the If value should be 0

hearty cave
#

?

#

im liker super new