Skip to content

Instantly share code, notes, and snippets.

Hardware.mecanumDrive.setXVal(Hardware.rightDriver.getX);
Hardware.mecanumDrive.setYVal(Hardware.rightDriver.getY);
package org.usfirst.frc.team339.HardwareInterfaces.transmission;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.SpeedController;
public class TransmissionMecanum extends TransmissionFourWheel
{
/**
* @description If we are within x many degrees of being purely up, down,
@EinsteinUnicorn
EinsteinUnicorn / C Tutorial
Last active March 2, 2022 09:56
C Tutorial
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("Unicorns are cool \n");
printf("Einstein is old \a");
return 0;
@EinsteinUnicorn
EinsteinUnicorn / 2WD Arduino with Bluetooth
Last active March 2, 2022 09:57
Still a work in progress
/* Becky Button. This code is made such that the motor 1 (m1p1 m1p2) is on the left and Motor 2 (m2p1, m2p2) is on the right.
I will be posting an instructables soon on how to make this work, with all of the schematics and such.*/
int m1Pin1 = 3; // pin 2 on L293D IC
int m1Pin2 = 4; // pin 7 on L293D IC
int enablePinm1 = 5; // pin 1 on L293D IC
int m2Pin1 = 6;
int m2Pin2 = 7;