From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

SRX Magnetic Encoder

My team was wanting to use the SRX Magnetic to run a motor, but i havent ever programmed a encoder before. Could someone provide a example in great detail. Here's how I want it to work. I'm going to read the distance from vision to the bioler and then the motor turns a certain of rotations depending on the distance

 

Thanks

Team 2765 Radioactive Robotics

0 Kudos
Message 1 of 2
(3,355 Views)

The CTR Website has links to the manuals and examples. This is what we used to get started.

http://www.ctr-electronics.com/talon-srx.html#product_tabs_technical_resources

 

It is important to understand the PID section of the manual as these values will determine how well the system will track to position.

 

For a drive having multiple controllers I would recommend  making one the master and setting the other wheel controllers as slaves.

Champion CLA

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