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 <LiquidCrystal.h> | |
| LiquidCrystal lcd(9, 8, 5, 4, 3, 2); | |
| double a = 4.800268981e-3; | |
| double b = -4.384001802e-4; | |
| double c = 32.57739182e-7; | |
| double ohmWindow[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | |
| #define RED 12 | |
| #define BLUE 10 |
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 cv2 | |
| import numpy as np | |
| import math | |
| DEBUG = True | |
| capture= cv2.VideoCapture(2) | |
| capture.set(10,0) | |
| if DEBUG: |
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 wpilib | |
| class PIDHelper: | |
| def __init__(self, robot): | |
| self.modules = robot.drivetrain.modules | |
| self.preferences = wpilib.Preferences.getInstance() | |
| def update(self): | |
| p = self.preferences.getFloat("P all") |