Page 1 of 1
Joytick Module
Posted: Tue Sep 18, 2012 3:09 pm
by frank-riedel
Hi Everyone
I need an example of code showing how i can controle Phidgets Servo controler with an Joystick attached to the computer . . . ANY EXAMPLE can help me
All the best
Frank
Re: Joytick Module
Posted: Wed Sep 19, 2012 3:45 pm
by frank-riedel
AnyOne ??

Re: Joytick Module
Posted: Thu Sep 20, 2012 9:39 am
by support
There are examples of the Phidgets Servo controller in the examples folder on this forum:
http://www.dsprobotics.com/support/viewtopic.php?f=38&t=348In order to add a Joy Stick probably the easiest thing is to use an Xbox games controller. There is a pre made module for this in FlowStone. You can connect the Xbox joystick out to the servo position in with maybe some scaling (multiply the value by a constant) to get the correct sensitivity.
Re: Joytick Module
Posted: Thu Sep 20, 2012 10:08 am
by frank-riedel
Thanks for the reply
Yes i know about the Xbox controller - BUT i want to use another ordinary Flight Controller stick -
any idea how to read from the joystick that windows find ???
/Frank
Re: Joytick Module
Posted: Thu Sep 20, 2012 1:48 pm
by support
Frank
It's hard to say without knowing the hardware you have. The problem is if a device has it's own driver then you will need some code to be able to communicate with it in software. We have done this for quite a few devices already, so it would be easier if you use something that exists already.
You could always make your own analog joy stick by taking the analog signals from the joystick pots and reading the values in FlowStone via a FlowBoard or Phidgets 888.
Re: Joytick Module
Posted: Thu Sep 20, 2012 2:17 pm
by frank-riedel
Thanks for reply so Fast
The joystick controller i have do not need any driver - Win7 see it as a joystick with 6 axis and 32 btn
so in some way it must be a standard - i'm just in the beginning of learning....
You have no idea about how to read from this standard device... ??
As i understand we can use Ruby code inside flowstone... i do not know anything about this "Ruby"
but is there anyway in that direction i can implement some part of code into flowstone diagram... and read the "Axis" that way ???
Another thing is that The Joystick that i intent to use, use Hall censors witch output is between 1V and 3V only and i need a full scale 5V output to Servo
Regards
Frank
Re: Joytick Module
Posted: Sat Sep 22, 2012 3:08 am
by frank-riedel
Hi Again
I tryed to look intro the "Pridgets Servo Xbox 6" file and if i should use 4 servos then i need to ad these
but i need a little help in the SYNC MODULE and how to send the data throug the SERVER
Any help will help me
THANKS
Frank
Re: Joytick Module
Posted: Mon Oct 22, 2012 10:27 am
by frank-riedel
Found out that a normal PC joystick can use PS2 module... but it's only a poor solution as the flexibility is not there.... thinking about select axes to use..
/Frank