View Single Post
  #14   Spotlight this post!  
Unread 23-05-2015, 23:27
MaGiC_PiKaChU's Avatar
MaGiC_PiKaChU MaGiC_PiKaChU is offline
Drive Coach
AKA: Antoine L.
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Sherbrooke
Posts: 608
MaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond repute
Re: Talon SRX and Analog Encoders

i'm not sure about LabView, but with Java it's also the same command;

depending on the Control mode, the input will not have the same effect

for example, we used "PercentVBus" during teleop, which ranges from -1 to 1
we used it like this
Code:
talon.set(0.7);
//this sets the voltage output to the motor to 70% of the battery
During autonomous, we used "Position" , which ranges from 0 to 1024 (0V on the sensor to 3.3V)
we used it like this
Code:
talon.set(512);
//this sets the talon to 180 degrees, like a servo would do
I guess it's the same with Labview, but I might as well be wrong
__________________
2012 - 3360 - Junior member
2013 - 3360 - Lead Programmer, Human player
2014 - 3360 - Lead Programmer, Human player
2015 - 3360 - Lead Programmer, Driver
2016 - 3360 - Mentor, Drive coach



Reply With Quote