short [ ] function ( ) { short [ ] loc0 = new short [ axisV . length ] ; for ( int loc1 = 0 ; loc1 < loc0 . length ; loc1 ++ ) { loc0 [ loc1 ] = ( short ) ( axisV [ loc1 ] * 127 ) ; } return loc0 ; }
encode all the axis to a short system that can be read by wpilib . this is to a resolution of 128 in either direction . concode_field_sep boolean[] buttons concode_elem_sep int[] povs concode_elem_sep int buttonCount concode_elem_sep double[] axisV concode_field_sep int[] getPOVs concode_elem_sep boolean[] getButtons concode_elem_sep short[] encodePOV concode_elem_sep int encodeButtons concode_elem_sep void setPOV concode_elem_sep int getPOV concode_elem_sep void setButton concode_elem_sep double[] getAxis concode_elem_sep double getAxis concode_elem_sep void setAxis