Thread: HELP!
View Single Post
  #10   Spotlight this post!  
Unread 19-01-2015, 18:44
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: HELP!

Quote:
Originally Posted by Awesomegamer235 View Post
what is the "package org.usfirst.frc.team3019.robot.subsystems;" mean
This is the auto generated package for a command based robot. There are 3 different packages auto created. robot.subsystems, robot.commands, and just robot.

explanation of each package:

Robot.Subsystem: This package contains classes to hold motor instances, sensors, pnumatics. In each class there are also methods to move each motor and read the sensors.

Robot.Commands: This package contains the classes that tell the subsystems how to act. For example the class DriveStraight class tells the driveTrain subsystem to drive untill X condition happens.

Robot: This package contains the 3 main classes: Robot, RobotMap, OI
  • Robot: This is the main class of the Robot, instantiates all the public static subsystems and sets the autonomous command.
  • RobotMap:Holds all the constants of the Robot so there is not a bunch of magic numbers in the code, generally using a single class for all constants is bad practice, however use it for now.
  • OI:Holds the joysticks and the joystick buttons and binds the buttons to the commands

Last edited by Fauge7 : 19-01-2015 at 21:54.
Reply With Quote