Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe Abbate jabbate19

View GitHub Profile
View AdvShooter.java
// 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;
View robot.java
/**
* 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;
View VisionPipeline.java
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"];
//updateAll();
onEvent("questionBtn", "click", function(event) {
setScreen("questions");
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 (11.0.4.10) (build 11.0.4.10-frc+0-2020-11.0.4u10-2)
# Java VM: OpenJDK Client VM (11.0.4.10-frc+0-2020-11.0.4u10-2, mixed mode, concurrent mark sweep gc, linux-)
# Problematic frame:
# V [libjvm.so+0x13cdec]
#