Skip to content

Instantly share code, notes, and snippets.


Joe Abbate jabbate19

View GitHub Profile
// 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.subsystems;
import java.util.function.DoubleSupplier;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.TalonSRXFeedbackDevice;
* This is a very simple robot program that can be used to send telemetry to
* the data_logger script to characterize your drivetrain. If you wish to use
* your actual robot code, you only need to implement the simple logic in the
* autonomousPeriodic function and change the NetworkTables update rate
package dc;
import java.util.function.Supplier;
Imgproc.cvtColor( input, input, Imgproc.COLOR_RGB2HSV );
Core.inRange( input, new Scalar( hueMin, satMin, valMin ),
new Scalar( hueMax, satMax, valMax ), input );
Mat target = input.submat( new Rect( topLeft, bottomRight ) );
double avg = (int) Core.mean( target ).val[ 0 ];
Imgproc.rectangle( input, topLeft, bottomRight, new Scalar( 0, 250, 0 ), 2 );
View .js
var questions = ["What is your team number?"];
var teams = [];
var teamData = [];
var activeQ = 0;
var activeInt = [];
var activeTeamData = ["N/A"];
onEvent("questionBtn", "click", function(event) {
activeQ = 0;
View hs_err_pid32073.log
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0xb6940dec, pid=32073, tid=32076
# JRE version: OpenJDK Runtime Environment ( (build
# Java VM: OpenJDK Client VM (, mixed mode, concurrent mark sweep gc, linux-)
# Problematic frame:
# V []