krigsmaskin 0 Newbie Poster

Hi.
Got some newbee questions for the masters of C# =P

Im trying to build a small ROV. iv used Python and the joystick sketches u can find on the internet.
But i want a GUI that shows feedback from the ROV and output info like "lights on/off" and thruster output states.
And thats why i have swiched to C# as language.
I hope to send data from 4 or 5 joystick axis and 12 buttons

My problem is combining the data from joystick axis and buttons and sending them to the arduino card.
the sketch(see link 1) seems to output only the y-axis and all the time.

Can you guys help me with a code that only sends alterations.
eks: output = 1(servo-number),123(servo-state),

or if its possible to do a string with all in.
eks: utput = 123(servo1-state),123(servo2-state),123(servo3-state),123(servo4),and 12buttons.


I have started with this as a base: http://code.google.com/p/stepperserialcontrol/downloads/detail?name=Working%20Joystick%20Test.zip&can=2&q=(I had to modify the sketch to get throttle working.)

u can see it running on youtube: http://code.google.com/p/stepperserialcontrol/downloads/detail?name=Working%20Joystick%20Test.zip&can=2&q=

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.