Announcement

Collapse
No announcement yet.

Rookie Team - struggling with getting servo to move

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rookie Team - struggling with getting servo to move

    We have created a servo program that also has two DC motors running. But, we can't get the servo to move. We have tried multiple servos and the telemetry is showing a reading but the servo isn't moving. Any help would be great! I am trying to attach the program, but not sure if we did it right.

    /Users/kassandra/Dropbox/Program.png

  • #2
    Image

    Comment


    • #3
      I am also experiencing difficulties with getting servos to move. However, one thing that I noticed in your program was that it did not include the (.PwmEnable) block. You can get this block by first adding a servo controller from the design screen, and then adding the block that says, (Call RobotController1. PwmEnable) right before your "set global servopos" block (the one where you tell the servos what to do). This might get your servos to move.

      Comment


      • #4
        Originally posted by uzairwaheed13 View Post
        I am also experiencing difficulties with getting servos to move. However, one thing that I noticed in your program was that it did not include the (.PwmEnable) block. You can get this block by first adding a servo controller from the design screen, and then adding the block that says, (Call RobotController1. PwmEnable) right before your "set global servopos" block (the one where you tell the servos what to do). This might get your servos to move.
        I don't think that's the problem but you may try it. My program works fine without that block.
        Thanks,
        Programmer - FTC Delta Kappa

        Comment


        • #5
          My kids had the same issue! Since you're using two different inputs to move the SAME servo, you need to put them in an IF...ELSEIF...ELSE block. At any time you go into the OpMode.LOOP method it won't set any of the values until you actually exit the loop. I'm not sure sure this is your problem, though, because I saw it with the kids doing an IF..ELSE {set pos .5} IF..ELSE {set pos .5} so only the second IF would actually make anything happen because if it was done from the first, the second one would undo it with it's {set pos .5} as the ELSE. Regardless, to avoid that you should probably make sure to do things like that in an IF..ELSEIF..ELSE type of check.

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎