Coding Positioning Help

Hey y’all. I can’t figure out how to solve this problem I have. What I’m aiming for is that when my six bar motor rotates to a certain point, it triggers my tray to move up and out of the way. This is what I have so far. Currently, when the 6 bar reaches the point or anywhere above where it should trigger it, nothing is happening. At this point I would be happy for any help you could give me, thanks.

if(RightTower.position(degrees) <= -100)
{
FourBarMotor.spinToPosition(-120,rotationUnits::deg,50,velocityUnits::pct);
}

1 Like