- Connect your computer to the roboRIO's USB A port
- Go to command prompt and run
ping 172.22.11.2
- If the ping doesn't work:
- Make sure the robot is turned on and powered
- Ensure that you are connected via USB
- Try a different computer
- If the ping doesn't work:
- Go to the address 172.22.11.2 in Firefox (or IE)
- Click "Tap here to active plugin" if Firefox blocked Silverlight from running
- Once the webpage loads, you should see something like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma config(Hubs, S1, HTMotor, HTServo, none, none) | |
#pragma config(Motor, mtr_S1_C1_1, leftWheel, tmotorTetrix, openLoop, driveLeft) | |
#pragma config(Motor, mtr_S1_C1_2, rightWheel, tmotorTetrix, openLoop, driveRight) | |
#pragma config(Sensor, S2, gyroscope, sensorI2CHiTechnicGyro) | |
#pragma config(Sensor, S3, sonar, sensorSONAR) | |
#pragma config(Sensor, S4, compass, sensorI2CHiTechnicCompass) | |
int getCompass() { | |
return SensorValue[compass]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.usfirst.frc.team2976.robot.subsystems; | |
import org.usfirst.frc.team2976.robot.RobotMap; | |
import edu.wpi.first.wpilibj.AnalogGyro; | |
import edu.wpi.first.wpilibj.CANTalon; | |
import edu.wpi.first.wpilibj.Encoder; | |
import edu.wpi.first.wpilibj.RobotDrive; | |
import edu.wpi.first.wpilibj.SpeedController; | |
import edu.wpi.first.wpilibj.command.Subsystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "LedControl.h" | |
#include <DS3231.h> | |
// Initialize the dot matrix and the clock | |
LedControl lc = LedControl(7, 5, 6, 1); | |
DS3231 clock; | |
void setup() { | |
// Start up and clear the matrix | |
lc.shutdown(0, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.sql.SQLOutput; | |
import java.util.*; | |
public class Main { | |
private static Set<String> words; | |
private static Map<String, Set<String>> neighbors; | |
private static final char[] ALPHABET = "qwertyuiopasdfghjklzxcvbnm".toCharArray(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class BestTree<E extends Comparable<E>> { | |
private TreeNode overallRoot; | |
public BestTree(TreeNode root) { | |
overallRoot = root; | |
} | |
public BestTree() { | |
this(null); |
Resources include:
- processors (sound, graphics, CPU)
- storage (primary, secondary memory, cache)
- bandwidth (of peripherals, network)
- bus bandwidth
- screen resolution
Resources vary in mainframes, servers, PCs, laptops, netbooks, tablets, phones, cameras, and music players.