From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop motor movement when it reaches a specific encoder value

Solved!
Go to solution

I'm supposed to be programing a motor that will start to turn when i push a button then when it reaches a encoder value it stops. Our team is using analog encoders if that makes a diffrence.

0 Kudos
Message 1 of 2
(3,232 Views)
Solution
Accepted by topic author we516waeg651aweg165aweg

What type of drive are you using? (Tank, Mechanum, Swerve)

Are analog encoders attached to all the wheels?

Are you using Talon SRX or another motor controller?

Do you have a Gyro sensor on your robot (It is easier to use for rotating to angle).

 

 

 

 

Champion CLA

Making senseless computers do
intelligent real world things
is NOT easy. SO MAKE IT FUN!
0 Kudos
Message 2 of 2
(3,194 Views)