PLUS+1 User Forum

PLUS+1™ Hardware => PLUS+1™ Compliant Hardware => Topic started by: boa1770 on August 25, 2011, 08:23:14 PM

Title: mc24 and js1000
Post by: boa1770 on August 25, 2011, 08:23:14 PM
I am trying to use a js1000 and a mc24 together. I have never written programs for joystick and I dont know how to do it. i have the js1000_can block and I need to use and 8 point profile on 2 axis. Does anyone have a sample or can you send me a view of using the js1000 with the 8 point profile.

Thanks
Title: Re: mc24 and js1000
Post by: radioact on August 25, 2011, 09:29:52 PM
Here is something I threw together, it compiles but I haven't tested it with hardware.

It reads a joystick at address 55 (you may have to change this address for you joystick) and profiles the x and y values. You will have to edit the profile points to your liking but it should be what you are looking for.

Tyler
Title: Re: mc24 and js1000
Post by: boa1770 on August 25, 2011, 10:56:21 PM
Thanks Tyler....I will have to seperate the signals for the 4 outputs but I think I get the idea now.
Title: Re: mc24 and js1000
Post by: radioact on August 25, 2011, 11:49:04 PM
Good to hear,
All though it seems some people don't already know but compliance blocks kick ass, no need to reinvent the wheel. :)

Tyler