View Single Post
  #2   Spotlight this post!  
Unread 20-09-2015, 15:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Specifying Axis for Motor

The function to read from a joystick provides several outputs. One output is an array of values representing all the axes. The most straightforward way to get the value of the axis you are interested in is to use an Array Index function. The result is a single number that you can use for whatever you want, including as the input of a Motor Set function.

Array Index can return multiple individual outputs at the same time if you want to get more than one axis from a joystick.
Reply With Quote