Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Robot Builder Jaguar Code Generation Glitch (http://www.chiefdelphi.com/forums/showthread.php?t=113280)

stephmak 11-02-2013 17:33

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!

stephmak 11-02-2013 17:38

Re: Robot Builder Jaguar Code Generation Glitch
 
My apologies...I made a mistake in my code and I was not post trolling at all, just made a mistake in which motor controller I used. Sorry!


All times are GMT -5. The time now is 10:10.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi