|
Page 1 of 1
|
[ 8 posts ] |
|
"ROBOTC Exception Violation"??
| Author |
Message |
|
kennypu
Rookie
Joined: Thu Apr 16, 2009 9:25 pm Posts: 4
|
 "ROBOTC Exception Violation"??
Hi, I'm new to robotc, but not c/c++ programming in general. Anyways, I'm working on a competition program for our bot, and the source code compiles fine, but when I run the program I get a pop up saying: ROBOTC Exception Violation Report ***Byte Code Exception*** Source: opcode message<Noop> (0x00) Exception Type: 'Unknown(90)' (90) and I do get problems in the program as well. Just to test right now I have in the autonomous() task. For some reason when I run the code, it does set port2/3 motors, but even if I wait 2 seconds, it does not stop. If autonomous() automatically loops like a while loop, then it's understandable, but before I had more code in, and for somereason anything after the wait1Msec() does not get executed. Does any one have any ideas? If things don't work out I will probably have to revert back to easyC which I do not like because I am used to the traditional 'type in code' style and not drag and drops. Thanks in advance,l Ken
|
| Thu Apr 16, 2009 9:34 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: "ROBOTC Exception Violation"??
I am not sure if this is also true for the IFI environment, but the motor speed shouldn't exceed 100. It's a percentage, not an absolute value.
Regards, Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Apr 17, 2009 1:48 am |
|
 |
|
kennypu
Rookie
Joined: Thu Apr 16, 2009 9:25 pm Posts: 4
|
 Re: "ROBOTC Exception Violation"??
thanks for the reply. In the examples, and on the online help manual it says it ranges from -127 to 127, so I believe thats not the problem, but I can try it out tomorrow. Some interesting thing though, as you can see in the code, I set both motors to 127. In the debugger, when I start the controller, for some reason, the motors are set to motor[port1] = 0, motor[port2] = 90, motor[port3] = 0,..and so on in that pattern. When I turn the joystick on, it sets port2 to 127 like it should, but port3 gets set to 37. Weird things going on xP. Any help would be appreciated. Thanks
|
| Fri Apr 17, 2009 1:57 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: "ROBOTC Exception Violation"??
K, I've only ever programmed RobotC for the NXT. I hope you get some more useful answers soon  Regards, Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Apr 17, 2009 2:32 am |
|
 |
|
vnguyen
Site Admin
Joined: Wed Jan 24, 2007 10:44 am Posts: 421 Location: Pittsburgh, PA
|
 Re: "ROBOTC Exception Violation"??
Can you post the entire code on here? You mentioned for a competition, are you using a code template for the competition? Which competition is this for?
_________________Vu Nguyen Software Training Development Team | WebmasterNeed more support? Use the ROBOTC Ticketing systemRobotc.net| Robomatter Store | Robotics Academy
|
| Fri Apr 17, 2009 9:26 am |
|
 |
|
fryfrog
Rookie
Joined: Sat Aug 30, 2008 2:25 am Posts: 25
|
 Re: "ROBOTC Exception Violation"??
Just a quick, no thought suggestion: Make sure everything is up to date and current. Make sure you are using the most recent version of RobotC and that you have downloaded the most recent firmware to the controller.
Until we see your code, I'm not sure what more help anyone can provide.
|
| Sat Apr 18, 2009 12:51 am |
|
 |
|
kennypu
Rookie
Joined: Thu Apr 16, 2009 9:25 pm Posts: 4
|
 Re: "ROBOTC Exception Violation"??
I was coding for the vex elevation competition. The code is as follow: I based it off the Vex_Competition_Template.c in the samples.
|
| Sat Apr 18, 2009 1:09 am |
|
 |
|
kennypu
Rookie
Joined: Thu Apr 16, 2009 9:25 pm Posts: 4
|
 Re: "ROBOTC Exception Violation"??
no one seemed to know the problem, but I figured it out. Soon as I changed the firmware from "VEX VM0752.hex" to "VEX VM 0721.hex" It fixed the problem x]. Any one know why? I would think that VM0752.hex is the newer version of the firmware, but it didn't work :3
|
| Fri May 08, 2009 8:58 pm |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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
|
|