View Single Post
  #23   Spotlight this post!  
Unread 29-05-2015, 15:44
TBots TBots is offline
Registered User
FRC #3350
 
Join Date: Sep 2014
Location: Texarkana
Posts: 39
TBots is an unknown quantity at this point
Re: Talon SRX and Analog Encoders

In order to scale -1 to 1, the normal scale of the joystick, to 0 to 1024, we would have to add one and multiply by 512 the original value of the joystick. The problem is, since we would be using a joystick, whoever was driving would have to hold that position on the joystick else the wheel would return back to the the 512th position.

The only way I can think to avoid this, is if a button would increase the value of the angle while another one lowered it. The only problem is I'd have to know how often the tele-op vi was executed. Otherwise I wouldn't know by how much to increase the value. In other words, I wouldn't know how sensitive to make the joystick.

In the case that the button was held down, the wheel may have too large of an increase in angle and mess up the wires of the wheel. This is why I'd need to know how long it takes tele-op to execute, in order to determine what magnitude the decrease/increase would need to be.
Reply With Quote