Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava
- Timestamp:
- Oct 9, 2019, 11:54:23 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava
v6 v7 39 39 40 40 * Use the WPILib icon to build your new program: W->Build Robot Code 41 * Connect to the Peanut WiFi Hotspot41 * Connect to the Peanut !WiFi Hotspot 42 42 * Use the WPILib icon to deploy your program to the robot: W->Deploy Robot Code 43 43 * Launch the FRC Driver Station on your laptop. Two windows should open: FRC Driver Station and FRC PC Dashboard. … … 55 55 == Second program: Ultrasonic Rangefinder 56 56 57 Create another program using the TimedRobot java template and name itUltrasonicTest. Modify the generated code as follows:57 Create another program using the !TimedRobot java template and name it !UltrasonicTest. Modify the generated code as follows: 58 58 * import the Ultrasonic class {{{ import edu.wpi.first.wpilibj.Ultrasonic; }}} 59 59 * declare a ultrasonic variable in the Robot class {{{ private Ultrasonic f_ultrasonic; }}} … … 77 77 * WPILib provides [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/599697-choosing-a-base-class 3 frameworks] for building robot programs. Build your first program using the !TimedRobot (previously had been !IterativeRobot) framework as described [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/145307-creating-your-benchtop-test-program here]. 78 78 79 * Connect your laptop to the RoboRIO USB port or WiFi79 * Connect your laptop to the RoboRIO USB port or !WiFi 80 80 * Connect your joystick or xbox controller to another USB port on your laptop 81 81 * Launch the NI Driver Station Software. For details see [https://wpilib.screenstepslive.com/s/4485/m/24192/l/144976-frc-driver-station-powered-by-ni-labview here]