Skip to content

Instantly share code, notes, and snippets.

View prateekma's full-sized avatar

Prateek Machiraju prateekma

  • SpaceX
  • Los Angeles, CA
View GitHub Profile
LEIA
Anoat system. There's not much
there.
HAN
No. Well, wait. This is
package org.ghrobotics.frc2022.commands;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.CommandBase;
import java.util.function.BooleanSupplier;
import org.ghrobotics.frc2022.subsystems.Climber;
public class ClimbTeleop extends CommandBase {
// Reference to subsystem, controller, and climb mode supplier.
private final Climber climber_;
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
set number
" More natural splits
set splitbelow " Horizontal split below current.
terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff203548e2 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff20386e6f _pthread_cond_wait + 1254
2 libjvm.dylib 0x00000001145fa92a os::PlatformEvent::park() + 126
3 libjvm.dylib 0x00000001145ccc10 Monitor::IWait(Thread*, long) + 140
4 libjvm.dylib 0x00000001145cd16a Monitor::wait(bool, long, bool) + 306
5 libjvm.dylib 0x000000011474bae2 VMThread::execute(VM_Operation*) + 568
6 libjvm.dylib 0x00000001143978d8 vm_exit(int) + 143
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.wpilibj.ADXRS450_Gyro;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.PWMTalonFX;
import edu.wpi.first.wpilibj.RobotController;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Glass</string>
<key>CFBundleExecutable</key>
<string>glassApp</string>
<key>CFBundleDisplayName</key>
<string>Glass</string>
apply plugin: 'maven-publish'
def baseArtifactId = 'Glass'
def artifactGroupId = 'edu.wpi.first.tools'
def zipBaseName = '_GROUP_edu_wpi_first_tools_ID_Glass_CLS'
model {
publishing {
def tasks = []
$.components.each { component ->
import edu.wpi.first.gradlerio.GradleRIOPlugin
import edu.wpi.first.gradlerio.frc.FRCJavaArtifact
import edu.wpi.first.gradlerio.frc.RoboRIO
import edu.wpi.first.toolchain.NativePlatforms
plugins {
kotlin("jvm") version "1.3.61"
id("edu.wpi.first.GradleRIO") version "2020.3.2"
id("com.diffplug.gradle.spotless") version "3.27.0"
}
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright 2019, Green Hope Falcons
*/
package org.ghrobotics.frc2020.comms
@prateekma
prateekma / install.sh
Last active August 2, 2020 02:42
PhotonVision installation script
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "This is the installation script for PhotonVision."
echo "Installing the JDK..."