ROBOTC.net forums
http://robotc.net/forums/

Robotc say's my JoystickDriver is already opened.
http://robotc.net/forums/viewtopic.php?f=52&t=5273
Page 1 of 1

Author:  fatleboo8 [ Mon Dec 17, 2012 3:19 pm ]
Post subject:  Robotc say's my JoystickDriver is already opened.

I've been sitting here for day's trying to figure this out. I've reinstalled Robotc plenty of times to try and fix the problem. It say's that the JoystickDriver has already been opened, and it will not allow for me to control the robot using the controller. I've tried this on multiple computers. It doesn't work. I have included a Jpeg of what the error looks like.

Attachments:
Robotc_error.jpg
Robotc_error.jpg [ 202.85 KiB | Viewed 4653 times ]

Author:  JohnWatson [ Mon Dec 17, 2012 3:58 pm ]
Post subject:  Re: Robotc say's my JoystickDriver is already opened.

The reason you are seeing the 'multiple instances of the include' error is because Natural Language includes the JoystickDriver.c driver automatically; the sample program was written for normal ROBOTC mode, in which case you do have to manually call the drivers and includes.

For sample programs for the Natural Language mode (including remote control code), navigate to the NXT Sample Progrms folder (typically C:/Program Files (x86)/Robomatter Inc/ROBOTC Development Environment/Sample Programs/NXT; ROBOTC should direct you to a Sample Programs subfolder by default, depending on the selected platform and mode) and make sure you navigate to the 'Natural Language' subfolder. Inside, you will see a 'Remote Control' folder which contains the relevant sample programs.

Author:  fatleboo8 [ Mon Dec 17, 2012 4:07 pm ]
Post subject:  Re: Robotc say's my JoystickDriver is already opened.

Thank you very much, it works now.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/