View Single Post
  #1   Spotlight this post!  
Unread 11-02-2013, 17:33
stephmak stephmak is offline
High King of Code--Lead Programmer
FRC #4621
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Georgia
Posts: 15
stephmak is an unknown quantity at this point
Question Robot Builder Jaguar Code Generation Glitch

Hello everyone,

I have encountered a problem when Robot Builder generates code for a Jaguar, an error immediately appears.

Here are the relevant code sections:

// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
cANJaguar14 = RobotMap.shooterAltitudeChangeCANJaguar14;
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS


public void raiseShooterAltitude() {
cANJaguar14.setspeed(1.0); //Sets the Jaguar motor controller connected
//to the motor driving the screw drive that lifts and lowers the shooter
//platform(the barrel) to raise the shooter platform. Will move at full
//speed because it is set to 1,0--0.5 would be half speed.
}

public void lowerShooterAltitude() {
acANJaguar14.setspeed(-1.0); //Sets the Jaguar motor controller connected
//to the motor driving the screw drive that lifts and lowers the shooter
//platform(the barrel) to lower the shooter platform. Will move at full
//speed because it is set to 1,0--0.5 would be half speed. Negative
//means the motors will move in the opposite direction, thus lowering
//the shooter platform.
}


On the first line inside the autogenerated code markers, the error code: "cannot find symbol symbol: class cANJaguar14 location: class ShooterAltitudeChange <identifier>expected" appears and on the two setspeed(); lines, I get the eror: "cannot find symbol symbol: variable cANJaguar14 location: class ShooterAltitudeChange".

I am pretty sure there is some naming problem with the Some help to correct this would be greatly appreciated.

Thanks!
__________________
FTC
2011-2012 Bowled Over: Team #5165 Star Cygnus X-1

FRC
2013-2014 Ultimate Ascent: Team #4621 Yotta Robota
Reply With Quote