Go to Post Anyway, it's a global program and a global world. - Christopher149 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-11-2013, 05:33 PM
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
  #2   Spotlight this post!  
Unread 02-11-2013, 05:38 PM
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
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!
__________________
FTC
2011-2012 Bowled Over: Team #5165 Star Cygnus X-1

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


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:51 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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