Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

convert I32 to I8 - joystick to NXT motors

Hi all,

 

First of all, i am a new on Labview.

 

Using an USB joystick to control two NXT motors, i would like to know how to convert a 32 bits value (Joystick output) to match the range 100 / -100 which serve to control the motors.

The axis X,Y and Z are affected like this:

 

X => forward (+) / Back (-)

Y => steering left (+), right (-)

Z => power applied on the motor: 0 (stop = coast) and 100 (maximum power = rad/s)

 

Could you help me please ?

 

Thank you for your help and support.

 

Regards,

 

Chris.

 

0 Kudos
Message 1 of 1
(5,618 Views)