![]() |
Pulling Variables from Robot
So we are having some problems with variables in Command base programming. What we want to do is to create a variable in either Robot.Java or Robot.Map (or just any one class) that we can call from (i.e Robot.(variable name)) to be used in a command or subsystem. We just cant seem to be able to do just that. Anyone have any ideas as to why or for how we can do this?
|
Re: Pulling Variables from Robot
In robot map you declare the constants for the robot.
For example: Code:
public static final int MOTOR_SPOT_1 = 1;Code:
RobotMap.MOTOR_SPOT_1 |
Re: Pulling Variables from Robot
Quote:
Thanks, D |
Re: Pulling Variables from Robot
Quote:
|
Re: Pulling Variables from Robot
Perfect! Thanks!
D |
Re: Pulling Variables from Robot
The final keyword in java is used when a variable value is known at runtime.
|
| All times are GMT -5. The time now is 22:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi