View unanswered posts | View active topics It is currently Sun Nov 23, 2014 10:40 am






Reply to topic  [ 5 posts ] 
RobotC 2.30 for PIC problems 
Author Message
Rookie

Joined: Tue Mar 10, 2009 2:43 pm
Posts: 21
Location: Houston, TX
Post RobotC 2.30 for PIC problems
Competition Template:
We used the standard template in the examples folder with RobotC 2.30 and a PIC system. The autonomous does not run , the orange fast blink never starts

When we used 2.02 everything worked fine.


Firmware Differences
We were not able to download master/user firmware to a PIC based system with RobotC 2.30 on one of our older controllers

When we used RobotC 2.02 , the process worked great !


Tue Nov 09, 2010 5:47 am
Profile WWW
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: RobotC 2.30 for PIC problems
If you are using a VEX PIC in a VEX Round Up Competition, you will need to update your competition code to ensure compatibility with the Field Management System.

You old competition code probably looks like this currently:

#pragma competitionControl(Competition)
#pragma autonomousDuration(20)
#pragma userControlDuration(120)

We need to update your competition code to look like this:

#pragma config(ProgramType, Competition)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

//Competition Control and Duration Settings
#pragma autonomousDuration(20)
#pragma userControlDuration(120)

You can generate this code by doing the following:

Delete the "#pragma competitionControl(Competition)" line from your competition program.
Go into the ROBOTC Motors and Sensor Setup to the "Program Type" tab.
In the dropdown menu - select "Competition". Click OK to close this window.
The new line of code "#pragma config(ProgramType, Competition)" will automatically be generate. Your program has been successfully updated.


Hope that helps!

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Nov 09, 2010 12:46 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: RobotC 2.30 for PIC problems
Regarding the firmware not downloading, I tested the download on my end and it seems to work fine.

Is the USB-to-Serial driver installed on that computer? You can get it here: http://www.robotc.net/download/cortex/

Is the Prolific USB-to-Serial option chosen from the ROBOTC Preferences? In ROBOTC, go to View > Preferences > Detailed Preferences. On the Platform Tab, you can manually select the communications port.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Nov 09, 2010 12:57 pm
Profile
Rookie

Joined: Tue Mar 10, 2009 2:43 pm
Posts: 21
Location: Houston, TX
Post Re: RobotC 2.30 for PIC problems
jbflot wrote:
Delete the "#pragma competitionControl(Competition)" line from your competition program.
Go into the ROBOTC Motors and Sensor Setup to the "Program Type" tab.
In the dropdown menu - select "Competition". Click OK to close this window.
The new line of code "#pragma config(ProgramType, Competition)" will automatically be generate. Your program has been successfully updated.


This is very helpful thank you.

Will you update the competition sample in the examples folder in the next version ?


Tue Nov 09, 2010 3:35 pm
Profile WWW
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: RobotC 2.30 for PIC problems
Yup. This and a few other small changes will be released in version 2.31. You can expect it sometime this week.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Nov 09, 2010 3:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.