This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This function, is one of the BIGGEST endeavors I have ever taken on. | |
| // This function is something I have spent DAYS on. | |
| // I think it might have started on Thursday, or even earlier. | |
| // I was able to convert `swivel_vert` to matrix form, with one catch: | |
| // z' = z is not possible. So z' = -zcoord here. | |
| // I wonder if after successfully implementing this function, | |
| // I'll even want to work on the game anymore. | |
| // What if I feel burnt out, before I even started making the game? | |
| // Hopefully that does not happen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package frc.robot; | |
| import static edu.wpi.first.units.Units.Inches; | |
| import static edu.wpi.first.units.Units.InchesPerSecond; | |
| import edu.wpi.first.math.MathUtil; | |
| import edu.wpi.first.wpilibj.AddressableLED; | |
| import edu.wpi.first.wpilibj.AddressableLEDBuffer; | |
| import edu.wpi.first.wpilibj.LEDPattern; | |
| import edu.wpi.first.wpilibj.LEDPattern.GradientType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import re | |
| FIELD_Y_DIM = (26*12 + 5) * 0.0254 | |
| PATHPLANNER_ROOT = 'src/main/deploy/pathplanner' | |
| PATHPLANNER_PATHS = f'{PATHPLANNER_ROOT}/paths' | |
| PATHPLANNER_AUTOS = f'{PATHPLANNER_ROOT}/autos' | |
| # returns new position for align command | |
| def flip_align_position(position: int) -> int: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fs from 'node:fs' | |
| const imports = [ | |
| { alias: 'firebase/app', path: '@firebase/app' }, | |
| { alias: 'firebase/auth', path: '@firebase/auth' }, | |
| { alias: 'firebase/database', path: '@firebase/database' } | |
| ] | |
| if (!fs.existsSync('node_modules')) { | |
| console.error('Please run `npm i`') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package frc.robot; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.nio.ByteBuffer; | |
| import com.ctre.phoenix6.mechanisms.swerve.LegacySwerveRequest.RobotCentric; | |
| import com.ctre.phoenix6.swerve.SwerveRequest; | |
| import edu.wpi.first.wpilibj2.command.Command; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| void sensorSetup(TwoWire& sensor) { | |
| sensor.begin(); | |
| sensor.beginTransmission(0x52); | |
| // MAIN_CTRL (only turn on proximity sensor) | |
| sensor.send(0x00); | |
| sensor.send(0b00000111); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(0, OUTPUT); | |
| Wire.begin(); | |
| Serial.begin(115200); | |
| Wire.beginTransmission(0x52); | |
| // MAIN_CTRL (only turn on proximity sensor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wave | |
| from pathlib import Path | |
| import json | |
| import time | |
| import sys | |
| import keyboard | |
| import pyaudio | |
| writing = False | |
| reverse = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>gl</title> | |
| <link href="style.css" rel="stylesheet" type="text/css"/> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Abstract: We present the first deep learning model for segmenting galactic spiral arms and bars. In a blinded assessment by expert astronomers, our predicted spiral arm masks are preferred over both current automated methods (99% of evaluations) and our original volunteer labels (79% of evaluations). Experts rated our spiral arm masks as `mostly good' to `perfect' in 89% of evaluations. Bar lengths trivially derived from our predicted bar masks are in excellent agreement with a dedicated crowdsourcing project. The pixelwise precision of our masks, previously impossible at scale, will underpin new research into how spiral arms and bars evolve. | |
| Summary: Scientists have introduced a groundbreaking deep learning model designed for accurately segmenting galactic spiral arms and bars, outperforming current automated methods and even original volunteer labels, according to expert astronomers in a blinded assessment. With 89% of evaluations rating the predicted spiral arm masks as 'mostly good' to 'perfect,' the mod |
NewerOlder