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
| # Sample .bashrc - Created by Matthew Haahr (mjhaahr) and evelyn maude (amrelk) | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac | |
| # don't put duplicate lines or lines starting with space in the history. | |
| # See bash(1) for more options |
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
| void BlueMotor::moveTo(long target, bool sync) //Move to this encoder position within the specified | |
| { //tolerance in the header file using proportional control | |
| //then stop | |
| if(sync) { | |
| while(abs(target - count) > MOVE_TO_POS_THRESH) { | |
| moveToAsync(target); | |
| } | |
| } else { | |
| moveToAsync(target); | |
| } |
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 com.qualcomm.hardware.rev.Rev2mDistanceSensor; | |
| import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit; | |
| public class DistanceSensorExample extends Subsystem { | |
| private Rev2mDistanceSensor distanceSensor; | |
| private boolean state; | |
| private int counter = 0; |
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.ArrayList; | |
| public class Point { | |
| public double x; | |
| public double y; | |
| public Point(){ | |
| x = 0.0; | |
| y = 0.0; |
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
| public class Odometry { | |
| private double previousVelocity; | |
| public double x; | |
| public double y; | |
| public void run() { | |
| double velocity = previousVelocity + (acceleration * (iterationTime / 1000.0)); |
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 org.opencv.core.Scalar; | |
| public interface bgrColor { | |
| Scalar GREEN = new Scalar(0, 255, 0); | |
| Scalar RED = new Scalar(0, 0, 255); | |
| Scalar BLUE = new Scalar(255, 0, 0); | |
| Scalar VULCAN = new Scalar(12, 21, 140); | |
| Scalar PINK = new Scalar(255, 0, 255); | |
| Scalar PURPLE = new Scalar(255, 51, 51); | |
| Scalar CYAN = new Scalar(255, 255, 0); |
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 android.util.Log; | |
| import com.disnodeteam.dogecv.DogeCV; | |
| import com.disnodeteam.dogecv.detectors.DogeCVDetector; | |
| import com.disnodeteam.dogecv.filters.CbColorFilter; | |
| import com.disnodeteam.dogecv.filters.DogeCVColorFilter; | |
| import com.disnodeteam.dogecv.filters.GrayscaleFilter; | |
| import com.disnodeteam.dogecv.filters.LeviColorFilter; | |
| import com.disnodeteam.dogecv.scoring.MaxAreaScorer; | |
| import com.disnodeteam.dogecv.scoring.PerfectAreaScorer; | |
| import com.disnodeteam.dogecv.scoring.RatioScorer; |
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) 2020 Vulcan Robotics FTC Team 8375. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| * | |
| * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |