usb joystick
Posted: Fri Mar 22, 2013 4:58 am
Hi, I'm new flowstone, a few days ago I started to program, and I have a problem.
I want to control servos with Phidget interface and a USB joystick. until there ok, but connecting the joystick and reading data with ps2 module, this returns me readings from -1 to 1. the problem is that I need to have values from 0 to 180 to control the servos and therein lies the problem, I do not know how.
I would greatly appreciate if someone could help me.
I want to control servos with Phidget interface and a USB joystick. until there ok, but connecting the joystick and reading data with ps2 module, this returns me readings from -1 to 1. the problem is that I need to have values from 0 to 180 to control the servos and therein lies the problem, I do not know how.
I would greatly appreciate if someone could help me.