View unanswered posts | View active topics It is currently Tue Jun 19, 2018 10:27 am






Reply to topic  [ 9 posts ] 
Simple Joystick Crash (4.26) 
Author Message
Rookie

Joined: Mon Sep 08, 2014 8:17 pm
Posts: 2
Post Simple Joystick Crash (4.26)
Whenever I attempt to open the 'Simple Joystick' window RobotC Crashes.
RobotC is version 4.26, building to a Cortex with the latest Master and RobotC firmwares (CORTEX_V4_22.bin & VEX_Cortex_1026.hex, respectivly)
This happens regardless of code pushed to the Cortex, either a blank template or code that polls getPCJoystickSettings. This has been also tested on multiple computers, both with Windows 8.1.
Attempting to open the 'Simple Joystick' window causes RobotC to exit without an error message, leaving Windows to prompt the user with a "Application has stopped working" error. This can be triggered either by pressing the button in the Debugger Windows menu or with a #pragma DebuggerWindows("joystickSimple"). This issue did not exist as of RobotC 4.10


Mon Sep 08, 2014 8:31 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: Simple Joystick Crash (4.26)
Please post a sample of your code using the [code] tags as this will help with the debugging process. Also, what type of joystick are you using for the joystick control? Are you using a VEXNet Joystick Controller or a USB-based controller (such as a Logitech F310 controller)?

Thank you in advance!

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.


Tue Sep 09, 2014 12:47 pm
Profile
Rookie

Joined: Mon Sep 08, 2014 8:17 pm
Posts: 2
Post Re: Simple Joystick Crash (4.26)
As I stated in my post this issue occurs regardless of code pushed, including:
Code:
 
task main() {}

The controller I am using is a Logitech F310 mascaraing as Dual Action, according to the Joystick Configuration Utility.


Tue Sep 09, 2014 1:10 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: Simple Joystick Crash (4.26)
Thank you for this information. We have been able to duplicate this issue and should have a fix available for the next release.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.


Thu Sep 11, 2014 11:11 am
Profile
Rookie

Joined: Thu Sep 25, 2014 8:46 pm
Posts: 4
Post Re: Simple Joystick Crash (4.26)
I have experienced this exact problem as well. Is there any work around in the current version of RobotC?


Thu Sep 25, 2014 9:00 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 620
Post Re: Simple Joystick Crash (4.26)
This is a known issue unfortunately for the VEX Cortex/IQ platforms. We have a fix available for our next release, which we are in the final stages of preparation to release. We hope to have the build released by the end of this week/monday at the latest.

Thanks!

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Thu Oct 09, 2014 3:16 pm
Profile
Rookie

Joined: Sun Oct 12, 2014 11:46 pm
Posts: 1
Post Re: Simple Joystick Crash (4.26)
Having joystick problems as well with NXT.

The competition joystick debug window shows that the joystick is working.

Not able to read any joystick information in any program. As far as I can tell, the entire joystick struct is zero'd out and never changes.

Communication between the PC and NXT brick is good, both USB and BT. Other programs run.

Following simple program never indicates a button press. joy1_Buttons is always 0 in the debug stream.

//////////////////////////////////////////////////
#pragma debuggerWindows("joystickGame");

#include "JoystickDriver.c"

task main()
{
while (true)
{
getJoystickSettings(joystick);

writeDebugStreamLine("%d", joystick.joy1_Buttons);

sleep(1000);
}
}


Sun Oct 12, 2014 11:57 pm
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post Re: Simple Joystick Crash (4.26)
The game joystick window can be a pretty tricky animal to get to work right. I would recommend that if you only need one joystick, you use the simple joystick window instead. Just replace "joystickGame" with "joystickSimple".

_________________
FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at http://bluechariotsoffire.com/.


Tue Oct 14, 2014 12:03 am
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post Re: Simple Joystick Crash (4.26)
Maybe you could try this code for your tankControl function:
Code:
tankControl(joystick.joy1_x2, joystick.joy1_x1, 10);

from the ROBOTC online help.

Also, I'm not sure if you need to call startJoystickControl() before the joysticks work. This command is in the ROBOTC 3 help, but doesn't seem to appear anywhere in the 4 help.

_________________
FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at http://bluechariotsoffire.com/.


Thu Oct 16, 2014 11:28 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.