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
| // 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 com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; | |
| import edu.wpi.first.util.sendable.SendableRegistry; | |
| import edu.wpi.first.wpilibj.TimedRobot; |
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
| local actor = script:GetActor() | |
| if not actor then | |
| local ServerScriptService = game:GetService("ServerScriptService") | |
| local ConfigBlacklist = ServerScriptService:WaitForChild("Server"):WaitForChild("ConfigBlacklist") | |
| ConfigBlacklist:WaitForChild("Hash") | |
| local workers = {} | |
| for index = 1, 100 do | |
| local actor = Instance.new("Actor") |
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
| //! Implements a holonomic x-drive drivetrain. | |
| // Yoinked from Höppenheimer, Destroyer of High Stakes | |
| // Original implementation by edjubuh | |
| // http://blog.elliotjb.com/ | |
| // https://github.com/edjubuh/HolonomicXDrive-PROS= | |
| use core::f64::consts::PI; | |
| use libm::{atan2, sqrt}; |