View unanswered posts | View active topics It is currently Mon Sep 22, 2014 2:15 pm






Reply to topic  [ 6 posts ] 
Vex Competition Template 
Author Message
Rookie

Joined: Fri Feb 06, 2009 11:43 am
Posts: 11
Post Vex Competition Template
So, I am at an event with my students. We actually compete tomorrow and I am wondering if I am the ONLY RobotC user here as most are using EASY-C. Anyway, I have filled in the competition template and I have only THREE yellow "x"s during the compile. Is that OK? They are as follows.

Line 14: #pragma platform(VEX)
Line 11.178: static void UserControlCodePlaceholderForTesting()
Line 11.190: static void AuonomousCodePlaceholderForTesting()


*Warning*:"#Pragma platform <list>" is deprecated. It has been replaced with "#pragma config(platform, <list.)"
*Warning*:Unreferenced function 'UserControlCodePlaceholderForTesting'
*Warning*:Unreferenced function 'AuonomousCodePlaceholderForTesting'

They are yellow, will these work when hooked up to their VEXNey system


Thu Nov 10, 2011 10:46 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Vex Competition Template
I would avoid using the
Code:
#pragma platform

Use the Robot->Platform Type menu instead.
As for the last two warnings about the functions, they are safe to ignore, it just means you are not using them anywhere in your code, so they won't be compiled in.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Nov 11, 2011 2:16 am
Profile WWW
Rookie

Joined: Fri Feb 06, 2009 11:43 am
Posts: 11
Post Re: Vex Competition Template
Well, that is what I checked out and I hestitated to change my settings on RobotC. The platform is set to Cortex 2.0. In all of the documentation online, I don't even see "platform" mentioned. I wonder if I can simply comment it out.


Fri Nov 11, 2011 5:51 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: Vex Competition Template
Those yellow x's shouldn't mess anything up.

The last two say that there are place holder functions in the template that you're no longer using - perfectly fine. The first one appears because ROBOTC has a new way of signifying platform type - this also shouldn't mess anything up.

You can update to ROBOTC 3.04 to eliminate the first warning message.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Fri Nov 11, 2011 4:14 pm
Profile
Rookie

Joined: Fri Feb 06, 2009 11:43 am
Posts: 11
Post Re: Vex Competition Template
Thanks a bunch. I DID update to 3.04 and it worked like a charm today. Well, at least the connections did. Can't say much for our robots. But we had fun regardless!


Fri Nov 11, 2011 10:07 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Vex Competition Template
There are some things even a software update won't fix :) I am sure you guys will figure it out, though!

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Nov 12, 2011 2:26 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 0 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.