|
Re: Correcting Mecanum Wheels with Encoders (Ether, We Summon You!)
Quote:
Originally Posted by jhersh
When you change modes, you change the units of "set();". That means you need to select a velocity based on your joystick. If you are using it like you should for a typical open-loop robot, then the values you are sending to set() are -1 to 1. This means that when you switch to closed loop you are asking for a velocity of -1 to 1.
|
Just to add a little bit more to what Joe has said, the "velocity" in the Talon SRX when using speed (velocity) control mode is in counts per 1/10 of a second. See section 17.1 of the Talon SRX Software Reference Manual for a little more info. On our robot, our top speed as measured on the Talon SRX is around 600 units, so we use set() commands which range from -600 to +600.
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"
|