View unanswered posts | View active topics It is currently Sat Nov 28, 2015 11:54 am

Reply to topic  [ 4 posts ] 
using the radio controler help 
Author Message

Joined: Tue Sep 14, 2010 6:17 pm
Posts: 1
Post using the radio controler help
so i have been trying to control my robot from the radio controller not the vex net but an older one. so every time i trye to compile the program i get this error for

bVexAutonomousMode = false;

this is where the error occurs ever time even in the sample programs. it returns the error
**Severe*:Can't assign to read only 'const' variable
so can any body help, my code looks like this.
#pragma config(Motor,  port1,           frontR,        tmotorNormal, openLoop)
#pragma config(Motor,  port2,           backR,         tmotorNormal, openLoop)
#pragma config(Motor,  port3,           frontL,        tmotorNormal, openLoop, reversed)
#pragma config(Motor,  port4,           backL,         tmotorNormal, openLoop, reversed)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
  bVexAutonomousMode = false;
  while (1==1);
  motor[frontR] = vexRT(Ch3);
  motor[backR] = vexRT(Ch3);
  motor[frontL] = vexRT(Ch2);
  motor[backL] = vexRT(Ch2);


Tue Sep 14, 2010 6:28 pm

Joined: Tue Jun 02, 2009 2:41 pm
Posts: 3
Post Re: using the radio controler help
I have the same issue

Platform Type: VEX 0.5 Microchip
RobotC Version: 2.25 (8.19) Sep 2 2010

I commented out the line and things seem to run ok.

Is the line no longer required?

Wed Sep 15, 2010 2:08 am
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: using the radio controler help
Yep. That line is no longer needed on the cortex platform.

sudo rm -rf /

Wed Sep 15, 2010 4:15 am
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 409
Post Re: using the radio controler help
We're releasing a new version of ROBOTC for Cortex and PIC that has a fix for this issue in the next day or two, along with a handful of other improvements.

Jesse Flot
CMU Robotics Academy
ROBOTC Support

Mon Oct 04, 2010 11:20 am
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.