Skip to content

Instantly share code, notes, and snippets.

View victoryforphil's full-sized avatar
:shipit:
Simulating stuff

Alex Carter victoryforphil

:shipit:
Simulating stuff
View GitHub Profile
@victoryforphil
victoryforphil / Details
Last active March 19, 2018 21:31
Pathfinder #1
Encoder Left: no reversal
Encoder Right: no reversal
Profile:
#pragma once
#pragma once
namespace DriveProfile {
const double WHEELBASE_WIDTH = 0.6;
const double WHEEL_CIRCUMFERENCE = 18.49;
const double MAX_VELOCITY = 5;
@victoryforphil
victoryforphil / jade2018.java
Created July 24, 2018 01:38
Jade 2018 Code
package org.usfirst.frc.team4151.robot;
/*Team coding work to post later, look into code with basic Java FRC Drive Code
Will be added to GitHub, but all edits and comments should be made on here.*/
//Comment like this or like I did above
import java.util.concurrent.TimeUnit;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.CounterBase.EncodingType;
@victoryforphil
victoryforphil / FRQ-121318.java
Created December 13, 2018 17:08
Questions for FRQ in APCSA, turned in 12/13/2018. Alex Carter
/*
Alex Carter @ GTHS
12/13/2018
VictoryForPhil@gmail.com
*/
// Question 1
public int[] replaceHighAndLow(int[] arr){
for(int i=0;i<arr.length;i++){