Search found 3 matches
- 22 Oct 2012, 04:03
- Forum: Mindstorms Software
- Topic: Using a joystick with NXC
- Replies: 7
- Views: 6893
Re: Using a joystick with NXC
Very cool. :D I attached a Logitech Gampad F310 and ran some tests. I'm trying to figure out how to interpret the values returned in the *pos fields of JoystickExMessageType: struct JoystickExMessageType { unsigned long Xpos; // The x position unsigned long Ypos; // The y position unsigned long Zpos...
- 03 Oct 2012, 01:45
- Forum: Mindstorms Software
- Topic: Using a joystick with NXC
- Replies: 7
- Views: 6893
Re: Using a joystick with NXC
Great! It works just like you said. Thanks. A few more questions if you don't mind: What is returned in the struct JoystickMessageType Buttons field? I'd like to be able to read the raw values of the two Gamepad joysticks. Is there a way to do that? Is there a way to read the D-Pad (the disk in the ...
- 01 Oct 2012, 13:02
- Forum: Mindstorms Software
- Topic: Using a joystick with NXC
- Replies: 7
- Views: 6893
Using a joystick with NXC
I'm teaching a class using NXC and would like my students to write their own NXC code to control a robot that can take driver controlled commands from a joystick. The robot will be connected via Bluetooth to a laptop with a Logitech F310 Gamepad attached via USB. To test out this setup, I've install...