get_axis_position
get_axis_position
Description
Returns the current position of a controller axis in units of counts.
Signature
get_axis_position(self, axis: int, print_result: bool = False) -> int
Parameters
axis: int
The axis from which to return the current position, [0, 7].
print_result: bool
Print the result for STDOUT, for example if used in the shell.
Returns
int
The current position of the axis in units of counts.
Example