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
| /** | |
| Wraps a package with flags and env vars. | |
| The wrapper derivation has each specified binary in the original package replaced by a wrapper with the specified flags and environment variables. | |
| Every other file from the original derivation is symlinked to by the new derivation, except any file referencing the original $pkg will be cloned and have that reference replaced by the wrapper derivation's $out. | |
| # Example | |
| ```nix | |
| mkWrapper = import ./wrap.nix; |
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
| //! # Lifetime Guard | |
| //! | |
| //! `lifetime-guard` provides `ValueGuard` and `RefGuard` structs to allow for | |
| //! weak references to interior mutable values, similar to a singular pair of | |
| //! `Rc` and `Weak`, but without heap allocation. | |
| //! | |
| //! ## Example Usage | |
| //! | |
| //! ```rust | |
| //! use std::pin; |
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
| { | |
| description = "Bevfusion"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem(system: let |
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 java.util.Objects; | |
| import java.util.Optional; | |
| import java.util.function.Consumer; | |
| import java.util.function.Function; | |
| import java.util.function.Supplier; | |
| import java.util.stream.Stream; | |
| public sealed interface Option<T> { | |
| record Some<T>(T value) implements Option<T> {} | |
| final class None<T> implements Option<T> { |
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 org.sciborgs1155.lib; | |
| import com.revrobotics.CANSparkBase; | |
| import com.revrobotics.CANSparkLowLevel.PeriodicFrame; | |
| import com.revrobotics.REVLibError; | |
| import edu.wpi.first.wpilibj.DriverStation; | |
| import java.util.Optional; | |
| import java.util.Set; | |
| import java.util.function.Supplier; |
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
| #!/bin/sh | |
| # Creates the racecar tool for easily using and communicating with a RACECAR | |
| racecar() { | |
| if [ "$RACECAR_CONFIG_LOADED" != "TRUE" ]; then | |
| echo "Error: unable to find your local .config file. Please make sure that you setup the racecar tool correctly." | |
| echo "Go to \"https://mitll-racecar-mn.readthedocs.io/en/latest/gettingStarted/computerSetup.html\" for setup instructions." | |
| else | |
| local RACECAR_DESTINATION_PATH="/home/racecar/Documents/${RACECAR_TEAM}" | |
| if [ $# -eq 1 ] && [ "$1" = "cd" ]; then |
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.sciborgs.robot.subsystems | |
| import edu.wpi.first.wpilibj2.command.SubsystemBase | |
| import edu.wpi.first.math.MathUtil | |
| import edu.wpi.first.math.controller.SimpleMotorFeedforward | |
| import edu.wpi.first.math.controller.PIDController | |
| import edu.wpi.first.wpilibj.Timer | |
| import frc.sciborgs.robot.Motors | |
| import frc.sciborgs.robot.Ports | |
| import frc.sciborgs.robot.ShooterConstants |