ROBOTC.net forums
http://robotc.net/forums/

using the radio controler help
http://robotc.net/forums/viewtopic.php?f=11&t=2581
Page 1 of 1

Author:  zigzag32 [ Tue Sep 14, 2010 6:28 pm ]
Post subject:  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.
Code:
#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);

}

Author:  ChrisHam [ Wed Sep 15, 2010 2:08 am ]
Post subject:  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?

Author:  magicode [ Wed Sep 15, 2010 4:15 am ]
Post subject:  Re: using the radio controler help

Yep. That line is no longer needed on the cortex platform.

Author:  jbflot [ Mon Oct 04, 2010 11:20 am ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/